[Csnd] Pfields past 5 and midi.
Date | 2008-12-17 01:57 |
From | Tobiah |
Subject | [Csnd] Pfields past 5 and midi. |
I like the command line flags that allow one to route midi messages to the proper pfields. --midi-velocity-amp=4 for example. I want to use these for all orchestras, even those that will eventually be rendered to disk, because the auditioning capability is so powerful. Since these instruments will likely have more pfields than what midi requires, is there a way to specify defaults? sort of like: p8 defaults 135 p9 defaults 122 This having no effect if the value is already present? Thanks, Tobiah |
Date | 2008-12-17 02:00 |
From | "Andres Cabrera" |
Subject | [Csnd] Re: Pfields past 5 and midi. |
Attachments | None |
Date | 2008-12-17 02:11 |
From | Tobiah |
Subject | [Csnd] Re: Re: Pfields past 5 and midi. |
Andres Cabrera wrote: > Hi, > > It's called mididefault: > http://www.csounds.com/manual/html/mididefault.html Thank you. |
Date | 2008-12-17 02:11 |
From | "Michael Gogins" |
Subject | [Csnd] Re: Pfields past 5 and midi. |
Attachments | None |
Date | 2008-12-17 02:25 |
From | Tobiah |
Subject | [Csnd] Re: Re: Pfields past 5 and midi. |
Michael Gogins wrote: > You can use the pset opcode to do this. You know, I stared at the doc page for that opcode, thinking that it might be what I wanted, but there were things about the entry that turned me away before trying the opcode. The overall description: pset — Defines and initializes numeric arrays at orchestra load time. I didn't understand this. It did mention some midi stuff though, but: "When an instrument is triggered from MIDI it only gets p1 and p2 from the event, and p3, p4, etc. will receive the actual preset values." I thought, "wait, I want the p4 and p5 to come from MIDI!". It seems that a zero value bypasses the assignment. Is that true? In that case, the example: pset 0,0,3,4,5,6 ; pfield substitutes sort of retroactively explains the documentation. Thanks, Toby |
Date | 2008-12-17 02:27 |
From | Tobiah |
Subject | [Csnd] Re: Re: Pfields past 5 and midi. |
Andres Cabrera wrote: > Hi, > > It's called mididefault: This works fine. I don't know how I missed it. The only strange thing is that I still get pfield errors: WARNING: instr 1 p9 illegal for MIDI The pset opcode may work out better, because I like the fact that I can denote all of the defaults on one line. Thanks, Toby |