Csound Csound-dev Csound-tekno Search About

[Csnd] Kstatus in Midiout

Date2017-11-24 17:09
FromSantiago Bogacz
Subject[Csnd] Kstatus in Midiout
Dear Csounders,

As I said in a previous mail, I am using midiout for piece in an organ that can be controlled via midi messages.
Asides from the notes, one can choose the register and different combinations of them, control its pitch via the air flow, etc.

Midiout gives you the chance to select up to 1 kstatus per message, which seems to be a problem in this case. This is why.
Let's say that in a certain moment I want, for example, a C4 to be played with a combination of octaves in just on register, something simple. Now, I would think this as one whole event. Doing an analogy, an oscili with a certain frequency and its own table to choose the harmonics. 

Now, as in this case C4 would be the "noteon", Main register would be "program change" and the octaves would be the "control change" (this is specified in the organ's manual), that would imply 3 different kstatus, thus 3 different messages for just one event. This would be no problem if one would like set just one type of timbre for the whole piece. But if one wants to quickly change from one register and combination to another, and the same with notes, for each event one would need to send 3 messages.
Of course, from a technical and perceptual point of view, there's no problem. But in terms of design and concept, it is hugely streaky! It would be as if one had and oscili and had to send one event for frequency, another one for amplitude, etc etc. 

So my question is, though I have already searched, is there a midiout opcode that let's one choose more than one kstatus per event? If not, does somebody have a good idea how to manage this in another way? As I said in a previous email, I'm totally new with midi and, plus, I definitely am not that experienced with Csound as to solve this type of problems 

Thanks very much!
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-11-24 19:10
FromVictor Lazzarini
SubjectRe: [Csnd] Kstatus in Midiout
I don’t really understand what you want: MIDI messages have only one status per message, that’s the limitation of the
protocol. If you want 3 different message types, you need to send out 3 different messages (you can’t
bunch three messages into one). This is not limited by Csound, but by the protocol. 

If you need to have three different messages, you can use 3 instances of midiout in an instrument,
or 3 instances of an instrument with one midiout in it.


========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 24 Nov 2017, at 17:09, Santiago Bogacz  wrote:
> 
> Dear Csounders,
> 
> As I said in a previous mail, I am using midiout for piece in an organ that can be controlled via midi messages.
> Asides from the notes, one can choose the register and different combinations of them, control its pitch via the air flow, etc.
> 
> Midiout gives you the chance to select up to 1 kstatus per message, which seems to be a problem in this case. This is why.
> Let's say that in a certain moment I want, for example, a C4 to be played with a combination of octaves in just on register, something simple. Now, I would think this as one whole event. Doing an analogy, an oscili with a certain frequency and its own table to choose the harmonics. 
> 
> Now, as in this case C4 would be the "noteon", Main register would be "program change" and the octaves would be the "control change" (this is specified in the organ's manual), that would imply 3 different kstatus, thus 3 different messages for just one event. This would be no problem if one would like set just one type of timbre for the whole piece. But if one wants to quickly change from one register and combination to another, and the same with notes, for each event one would need to send 3 messages.
> Of course, from a technical and perceptual point of view, there's no problem. But in terms of design and concept, it is hugely streaky! It would be as if one had and oscili and had to send one event for frequency, another one for amplitude, etc etc. 
> 
> So my question is, though I have already searched, is there a midiout opcode that let's one choose more than one kstatus per event? If not, does somebody have a good idea how to manage this in another way? As I said in a previous email, I'm totally new with midi and, plus, I definitely am not that experienced with Csound as to solve this type of problems 
> 
> Thanks very much!
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-24 19:40
FromSantiago Bogacz
SubjectRe: [Csnd] Kstatus in Midiout
Yes, I know it’s by protocol but just wondered if there was a possibility within had there been a way.

I was already doing one of the options you told me. 

Thanks a lot !

El 24 nov. 2017, a la(s) 20:10, Victor Lazzarini  escribió:

> I don’t really understand what you want: MIDI messages have only one status per message, that’s the limitation of the
> protocol. If you want 3 different message types, you need to send out 3 different messages (you can’t
> bunch three messages into one). This is not limited by Csound, but by the protocol. 
> 
> If you need to have three different messages, you can use 3 instances of midiout in an instrument,
> or 3 instances of an instrument with one midiout in it.
> 
> 
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952 
> 
>> On 24 Nov 2017, at 17:09, Santiago Bogacz  wrote:
>> 
>> Dear Csounders,
>> 
>> As I said in a previous mail, I am using midiout for piece in an organ that can be controlled via midi messages.
>> Asides from the notes, one can choose the register and different combinations of them, control its pitch via the air flow, etc.
>> 
>> Midiout gives you the chance to select up to 1 kstatus per message, which seems to be a problem in this case. This is why.
>> Let's say that in a certain moment I want, for example, a C4 to be played with a combination of octaves in just on register, something simple. Now, I would think this as one whole event. Doing an analogy, an oscili with a certain frequency and its own table to choose the harmonics. 
>> 
>> Now, as in this case C4 would be the "noteon", Main register would be "program change" and the octaves would be the "control change" (this is specified in the organ's manual), that would imply 3 different kstatus, thus 3 different messages for just one event. This would be no problem if one would like set just one type of timbre for the whole piece. But if one wants to quickly change from one register and combination to another, and the same with notes, for each event one would need to send 3 messages.
>> Of course, from a technical and perceptual point of view, there's no problem. But in terms of design and concept, it is hugely streaky! It would be as if one had and oscili and had to send one event for frequency, another one for amplitude, etc etc. 
>> 
>> So my question is, though I have already searched, is there a midiout opcode that let's one choose more than one kstatus per event? If not, does somebody have a good idea how to manage this in another way? As I said in a previous email, I'm totally new with midi and, plus, I definitely am not that experienced with Csound as to solve this type of problems 
>> 
>> Thanks very much!
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-11-24 21:01
FromAnders Genell
SubjectRe: [Csnd] Kstatus in Midiout
Couldn’t you make an UDO that calls midiout the appropriate number of times? 

Regards, 
Anders

> 24 nov. 2017 kl. 20:40 skrev Santiago Bogacz :
> 
> Yes, I know it’s by protocol but just wondered if there was a possibility within had there been a way.
> 
> I was already doing one of the options you told me. 
> 
> Thanks a lot !
> 
> El 24 nov. 2017, a la(s) 20:10, Victor Lazzarini  escribió:
> 
>> I don’t really understand what you want: MIDI messages have only one status per message, that’s the limitation of the
>> protocol. If you want 3 different message types, you need to send out 3 different messages (you can’t
>> bunch three messages into one). This is not limited by Csound, but by the protocol. 
>> 
>> If you need to have three different messages, you can use 3 instances of midiout in an instrument,
>> or 3 instances of an instrument with one midiout in it.
>> 
>> 
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>>> On 24 Nov 2017, at 17:09, Santiago Bogacz  wrote:
>>> 
>>> Dear Csounders,
>>> 
>>> As I said in a previous mail, I am using midiout for piece in an organ that can be controlled via midi messages.
>>> Asides from the notes, one can choose the register and different combinations of them, control its pitch via the air flow, etc.
>>> 
>>> Midiout gives you the chance to select up to 1 kstatus per message, which seems to be a problem in this case. This is why.
>>> Let's say that in a certain moment I want, for example, a C4 to be played with a combination of octaves in just on register, something simple. Now, I would think this as one whole event. Doing an analogy, an oscili with a certain frequency and its own table to choose the harmonics. 
>>> 
>>> Now, as in this case C4 would be the "noteon", Main register would be "program change" and the octaves would be the "control change" (this is specified in the organ's manual), that would imply 3 different kstatus, thus 3 different messages for just one event. This would be no problem if one would like set just one type of timbre for the whole piece. But if one wants to quickly change from one register and combination to another, and the same with notes, for each event one would need to send 3 messages.
>>> Of course, from a technical and perceptual point of view, there's no problem. But in terms of design and concept, it is hugely streaky! It would be as if one had and oscili and had to send one event for frequency, another one for amplitude, etc etc. 
>>> 
>>> So my question is, though I have already searched, is there a midiout opcode that let's one choose more than one kstatus per event? If not, does somebody have a good idea how to manage this in another way? As I said in a previous email, I'm totally new with midi and, plus, I definitely am not that experienced with Csound as to solve this type of problems 
>>> 
>>> Thanks very much!
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here