Csound Csound-dev Csound-tekno Search About

[Csnd] Where's the note off in Fluidnote?

Date2013-02-04 20:15
Fromzappfinger
Subject[Csnd] Where's the note off in Fluidnote?
How do the fluidopcodes know when to end a note when playing a midi file?
I do not see a note off status or a velocity of 0 happening?


Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Where-s-the-note-off-in-Fluidnote-tp5719862.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-02-05 08:05
Fromzappfinger
Subject[Csnd] Re: Where's the note off in Fluidnote?
What I am trying to do is play a midi file with fluidsynth and get send the
current midi notes via OSC to another program.
I have tried the following:

instr 1
	mididefault   60, p3
	midinoteonkey p5, p4
ikey	init p5
ivel	init p4
    kst, kch, kd1, kd2  midiin
    ;if (kst==144) then
		OSCsend     1, "localhost",9000, "/non", "i", ikey
	;endif
	if (kst==128) then
		OSCsend     1, "localhost",9000, "/nof", "i", ikey
	endif
	fluidNote giengine1, p1, ikey, ivel
endin

So this is a mix of midiin and the fluid opcodes. This seems to work as far
as playing the midi file is concerned, but it does not seem to capture all
the notes on/offs.

Without the 'if (kst==128) then' i only get note ons, hence my question.







--
View this message in context: http://csound.1045644.n5.nabble.com/Where-s-the-note-off-in-Fluidnote-tp5719862p5719870.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-02-05 09:29
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Where's the note off in Fluidnote?
Note that some NOTEOFF messages can be passed as NOTEON with velocity zero.
On 5 Feb 2013, at 08:05, zappfinger wrote:

> What I am trying to do is play a midi file with fluidsynth and get send the
> current midi notes via OSC to another program.
> I have tried the following:
> 
> instr 1
> 	mididefault   60, p3
> 	midinoteonkey p5, p4
> ikey	init p5
> ivel	init p4
>    kst, kch, kd1, kd2  midiin
>    ;if (kst==144) then
> 		OSCsend     1, "localhost",9000, "/non", "i", ikey
> 	;endif
> 	if (kst==128) then
> 		OSCsend     1, "localhost",9000, "/nof", "i", ikey
> 	endif
> 	fluidNote giengine1, p1, ikey, ivel
> endin
> 
> So this is a mix of midiin and the fluid opcodes. This seems to work as far
> as playing the midi file is concerned, but it does not seem to capture all
> the notes on/offs.
> 
> Without the 'if (kst==128) then' i only get note ons, hence my question.
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Where-s-the-note-off-in-Fluidnote-tp5719862p5719870.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-02-05 09:33
FromVictor Lazzarini
SubjectRe: [Csnd] Where's the note off in Fluidnote?
It doesn't. AFAIK, the duration is set by the instrument calling fluidnote. As long as it keeps playing, the note is ON.

On 4 Feb 2013, at 20:15, zappfinger wrote:

> How do the fluidopcodes know when to end a note when playing a midi file?
> I do not see a note off status or a velocity of 0 happening?
> 
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Where-s-the-note-off-in-Fluidnote-tp5719862.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-02-05 09:38
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Where's the note off in Fluidnote?
If you want to parse MIDI messages, you will need an instrument that is always on and that does not get
activated/deactivated by MIDI events. Have a look at the example in this page, for instance



On 5 Feb 2013, at 09:29, Victor Lazzarini wrote:

Note that some NOTEOFF messages can be passed as NOTEON with velocity zero.
On 5 Feb 2013, at 08:05, zappfinger wrote:

What I am trying to do is play a midi file with fluidsynth and get send the
current midi notes via OSC to another program.
I have tried the following:

instr 1
mididefault   60, p3
midinoteonkey p5, p4
ikey init p5
ivel init p4
  kst, kch, kd1, kd2  midiin
  ;if (kst==144) then
OSCsend     1, "localhost",9000, "/non", "i", ikey
;endif
if (kst==128) then
OSCsend     1, "localhost",9000, "/nof", "i", ikey
endif
fluidNote giengine1, p1, ikey, ivel
endin

So this is a mix of midiin and the fluid opcodes. This seems to work as far
as playing the midi file is concerned, but it does not seem to capture all
the notes on/offs.

Without the 'if (kst==128) then' i only get note ons, hence my question.







--
View this message in context: http://csound.1045644.n5.nabble.com/Where-s-the-note-off-in-Fluidnote-tp5719862p5719870.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
          https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie