Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OSCdef.new(
- \bang,
- {
- arg msg, time, addr, port;
- msg.postln;
- msg[1].postln;
- if(msg[1] == 'bang', {
- ~crowd.play;
- g = Pdef(
- Pbind(
- \instrument, \playguitar,
- \buf, ~guitarSF,
- \strum, 0.025,
- [\midinote, \dur],
- Pseq(~currentSongPart[1], 1)).play;
- b = Pdef(
- Pbind(
- \instrument, \playbassguitar,
- \buf, ~bassguitar,
- [\midinote, \dur],
- Pseq(~currentSongPart[2], 1)).play;
- d = Pdef(
- Pbind( \instrument, \playdrums,
- \buf, ~drum_kitSF,
- [\midinote, \dur],
- Pseq(~currentSongPart[3], 1)).play;
- e = Pdef
- (Pbind(
- \instrument, \playguitar,
- \buf, ~guitarSF,
- \dur, Pseq([1/4], inf),
- \rel, Pxrand([0.2:0.5], inf),
- \midinote, Pxrand(~guitarNotes , inf)).play; // Slow Guitar Pick
- e.mute;
- f = Pbind(
- \instrument, \playguitar,
- \buf, ~guitarSF,
- \dur, Pseq([1/8], inf),
- \rel, Pxrand([0.2:0.5], inf),
- \midinote, Pxrand(~guitarNotes +12 , inf)).play; // Medium Guitar Pick
- f.mute;
- h = Pdef(\shred, Pbind(
- \instrument, \playguitar,
- \buf, ~guitarSF,
- \dur, Pseq([1/16], inf),
- \rel, Pxrand([0.1:0.2], inf),
- \atk, Pxrand([0.005:0.05], inf),
- \midinote, Pxrand(~guitarNotes + 12 , inf))).play; // Shred ze Guitar
- h.mute;
- });
- if(msg[1] == 'bigstrumguitar', {
- Synth.new(\playguitar, [\midinote, ~guitarNotes[0..7].choose, \buf, ~guitarSF, \amp, 0.1]);
- });
- if(msg[1] == 'bigstrumbass', {
- Synth.new(\playbassguitar, [\midinote, ~bassGuitarNotes[0..3].choose, \buf, ~bassguitar, \amp, 0.7]);
- });
- if(msg[1] == 'shred', {
- e.mute;
- f.mute;
- g.mute;
- h.unmute;
- });
- if(msg[1] == 'mediumpick', {
- e.mute;
- f.unmute;
- g.mute;
- h.mute;
- });
- if(msg[1] == 'slowpick', {
- e.unmute;
- f.mute;
- g.mute;
- h.mute;
- });
- if(msg[1] == 'guitar', {
- e.mute;
- f.mute;
- g.unmute;
- h.mute;
- });
- if(msg[1] == 'highkick', {
- Synth.new(\hornstab, [\midinote, ~guitarNotes.choose, \buf, ~hornstab, \amp, 0.1]);
- });
- if(msg[1] == 'crowd', {
- ~crowd.play;
- });
- if(msg[1] == 'bow', {
- ~bow.play;
- });
- },
- '/bang'
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement