[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] a MIDIFunc that doesn't work



try adding the "holas".postln to the second MIDIFunc - that'll help
you tell if the note is being received in the first place. if it is
then something else is going on - usually in these situations I run a
quick sanity check to make sure the server is running, my speakers are
turned on, etc. It -should- work as it is - I can try running a test
tomorrow.

On Sun, Dec 25, 2016 at 9:48 PM, Ofelia Negrete
<flohston.lobby@xxxxxxxxx> wrote:
> Hi,
>
> I'm learning some MIDI basics. The following line of code prints "holas"
> each time I press that MIDI note
>
> MIDIFunc.noteOn({|vel, num| if(num == 64){"holas".postln;}.value;});
>
> I beleived that this next line of code would sound a SinOsc each time I
> pressed the adequate MIDI note, but its not the case...
>
> MIDIFunc.noteOn({|vel, num| if(num == 71){SinOsc.ar(440, 0, 0.5)}.play;});
>
> Maybe I could use some help in order to understand why this is not workng
> and what I could try instead of using that code
>
> Thanks in advance
>

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/