Sunday, April 27, 2008

CC3 Week 6 - Synthesiser Definitions I

I spent most of the time for this exercise just getting my SynthDef to work. The final result isn't very inspiring but I'm sure I will get the chance to create much more exciting sounds in the future.


AUDIO
SynthDef example [400KB]


//Synth Def
(
SynthDef("SinTone", {

arg cFreq = 500, cAmp = 0.5, mFreq = 3, mAmp = 0.75;

var carrier, modulator, out;

modulator = LFSaw.ar(freq: mFreq, mul: mAmp);
carrier = SinOsc.ar(freq: cFreq, mul: modulator * cAmp);

out = Out.ar(bus: 0, channelsArray: carrier);

}).send(s);
)

a = Synth("SinTone", [\cFreq, 222, \cAmp, 0.9]);
a.set(\cFreq, 800, \cAmp, 0.15);
a.set(\mFreq, 5);
a.set(\mFreq, 10);
a.set(\mFreq, 15);
a.set(\mFreq, 20);
a.set(\mFreq, 30);
a.set(\mFreq, 40);
a.set(\cFreq, 100, \cAmp, 0.15);
a.set(\cFreq, 8000, \cAmp, 0.15);
a.set(\cFreq, 50, \cAmp, 0.15);




// MIDI control
(
MIDIClient.init;

MIDIClient.sources;

MIDIIn.connectByUID(inport: 0, uid: MIDIClient.sources.at(0).uid);
)



(
MIDIIn.noteOn = {

arg src, chan, num, vel;

[chan,num,vel].postln;

a.set(\cFreq, num.midicps);
};
MIDIIn.noteOff = {};
)
(
MIDIIn.control = {

arg src, chan, num, val;

[src, chan,num,val].postln;

a.set(\mFreq, (val * 1.5));
};
)




[1] Christian Haines. "Creative Computing: Semester 1 - Week 6 - Synthesiser Definitions I". Lecture presented at the Electronic Music Unit, University of Adelaide, South Australia, 10th April 2008

Week 6 Forum - Mashups

[2]

Today's forum class was on mashups. David Harris presented us with some music by Vicki Bennett. I was late for forum this week and so I missed the actual presentation but I think my idea of a mashup or remix would be different to what David Harris thinks. I could be wrong but I am just going by past experiences.

I would have liked to see the visuals and music as I'm sure they were interesting. *Ah wellz* next time I'll make sure I'm there. I've only missed a few forums classes in my whole degree so I'm doing okay.


[1] David Harris, "Music Technology Forum: Semester 1 - Week 6 - Vicki Bennett". Lecture presented at the Electronic Music Unit, University of Adelaide, South Australia, 10th April 2008

[2] Creative Commons, Featured Commoners. http://creativecommons.org/commoners/2005/10/page/2 (Accessed 10/4/8)