Csound Csound-dev Csound-tekno Search About

R: Re: [Csnd] --midioutfile

Date2013-11-24 11:21
From"massimofragala@libero.it"
SubjectR: Re: [Csnd] --midioutfile
Thank you for your help

the midi controller works but csound generates always a blank midi file.




-M hw:3,0 -Q hw:3,0 --midioutfile=test.
mid                                                                                                                                                                                                                                                                                                                                                                                                                                                                 




Massimo


>----Messaggio originale----
>Da: jh@joachimheintz.de
>Data: 23/11/2013 23.07
>A: 
>Ogg: Re: [Csnd] --midioutfile
>
>this may help as well:
>http://en.flossmanuals.net/csound/e-midi-output/
>
>	joachim
>
>Am 23.11.2013 22:59, schrieb Victor Lazzarini:
>> This is because you’re not sending any midi out, only getting midi in. You 
need to use the
>> midi output opcodes.
>>
>> Victor
>> On 23 Nov 2013, at 20:55, massimofragala@libero.it wrote:
>>
>>> Hi all,
>>>
>>> I am trying my midi controller and I want to record my performace... 
Csound
>>> generates the file test.mid but without any information. I made a test on
>>> ubuntu 12.04 with csound 5.17 and 6.01
>>>
>>> Any suggestions?
>>>
>>> Thank you
>>>
>>> Massimo
>>>
>>> 
>>> 
>>> --midioutfile=test.mid
>>> 
>>> 
>>>
>>> sr = 44100
>>> ksmps = 32
>>> nchnls = 2
>>> 0dbfs = 1
>>>
>>> instr 1
>>>
>>> kfreq ctrl7 1, 1, 20, 8000
>>>
>>> a1	oscil  0.7, kfreq, 1
>>>
>>> printk2 kfreq
>>>
>>> outs a1, a1
>>>
>>> endin
>>>
>>> 
>>> 
>>> f1	0	4096	10	1
>>>
>>> i1	0	3600
>>> 
>>> 
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug trackers
>>> csound6:
>>>             https://sourceforge.net/p/csound/tickets/
>>> csound5:
>>>             https://sourceforge.net/p/csound/bugs/
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>              https://sourceforge.net/p/csound/tickets/
>> csound5:
>>              https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
csound"
>>
>>
>>
>
>
>Send bugs reports to the Sourceforge bug trackers
>csound6:
>            https://sourceforge.net/p/csound/tickets/
>csound5:
>            https://sourceforge.net/p/csound/bugs/
>Discussions of bugs and features can be posted here
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
csound"
>
>
>




Date2013-11-24 11:41
Frompeiman khosravi
SubjectRe: Re: [Csnd] --midioutfile
I've done this before using tabrec and then written the data to a file using ftsavek. Then you can load the table back into the instrument using ftloadk and tabplay



On 24 November 2013 11:21, massimofragala@libero.it <massimofragala@libero.it> wrote:
Thank you for your help

the midi controller works but csound generates always a blank midi file.


<CsoundSynthesizer>
<CsOptions>
-M hw:3,0 -Q hw:3,0 --midioutfile=test.
mid
</CsOptions>
<CsInstruments>


Massimo


>----Messaggio originale----
>Da: jh@joachimheintz.de
>Data: 23/11/2013 23.07
>A: <csound@lists.bath.ac.uk>
>Ogg: Re: [Csnd] --midioutfile
>
>this may help as well:
>http://en.flossmanuals.net/csound/e-midi-output/
>
>       joachim
>
>Am 23.11.2013 22:59, schrieb Victor Lazzarini:
>> This is because you’re not sending any midi out, only getting midi in. You
need to use the
>> midi output opcodes.
>>
>> Victor
>> On 23 Nov 2013, at 20:55, massimofragala@libero.it wrote:
>>
>>> Hi all,
>>>
>>> I am trying my midi controller and I want to record my performace...
Csound
>>> generates the file test.mid but without any information. I made a test on
>>> ubuntu 12.04 with csound 5.17 and 6.01
>>>
>>> Any suggestions?
>>>
>>> Thank you
>>>
>>> Massimo
>>>
>>> <CsoundSynthesizer>
>>> <CsOptions>
>>> --midioutfile=test.mid
>>> </CsOptions>
>>> <CsInstruments>
>>>
>>> sr = 44100
>>> ksmps = 32
>>> nchnls = 2
>>> 0dbfs = 1
>>>
>>> instr 1
>>>
>>> kfreq ctrl7 1, 1, 20, 8000
>>>
>>> a1  oscil  0.7, kfreq, 1
>>>
>>> printk2 kfreq
>>>
>>> outs a1, a1
>>>
>>> endin
>>>
>>> </CsInstruments>
>>> <CsScore>
>>> f1  0       4096    10      1
>>>
>>> i1  0       3600
>>> </CsScore>
>>> </CsoundSynthesizer>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug trackers
>>> csound6:
>>>             https://sourceforge.net/p/csound/tickets/
>>> csound5:
>>>             https://sourceforge.net/p/csound/bugs/
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"
>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>              https://sourceforge.net/p/csound/tickets/
>> csound5:
>>              https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"
>>
>>
>>
>
>
>Send bugs reports to the Sourceforge bug trackers
>csound6:
>            https://sourceforge.net/p/csound/tickets/
>csound5:
>            https://sourceforge.net/p/csound/bugs/
>Discussions of bugs and features can be posted here
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"
>
>
>




Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2013-11-24 12:54
FromVictor Lazzarini
SubjectRe: [Csnd] --midioutfile
That was because you were not sending midi data to the output. It’s the same if you run an instrument 
without the out etc opcdode, you will hear no sound.
On 24 Nov 2013, at 11:21, massimofragala@libero.it wrote:

> Thank you for your help
> 
> the midi controller works but csound generates always a blank midi file.
> 
> 
> 
> 
> -M hw:3,0 -Q hw:3,0 --midioutfile=test.
> mid                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
> 
> 
> 
> 
> Massimo
> 
> 
>> ----Messaggio originale----
>> Da: jh@joachimheintz.de
>> Data: 23/11/2013 23.07
>> A: 
>> Ogg: Re: [Csnd] --midioutfile
>> 
>> this may help as well:
>> http://en.flossmanuals.net/csound/e-midi-output/
>> 
>> 	joachim
>> 
>> Am 23.11.2013 22:59, schrieb Victor Lazzarini:
>>> This is because you’re not sending any midi out, only getting midi in. You 
> need to use the
>>> midi output opcodes.
>>> 
>>> Victor
>>> On 23 Nov 2013, at 20:55, massimofragala@libero.it wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> I am trying my midi controller and I want to record my performace... 
> Csound
>>>> generates the file test.mid but without any information. I made a test on
>>>> ubuntu 12.04 with csound 5.17 and 6.01
>>>> 
>>>> Any suggestions?
>>>> 
>>>> Thank you
>>>> 
>>>> Massimo
>>>> 
>>>> 
>>>> 
>>>> --midioutfile=test.mid
>>>> 
>>>> 
>>>> 
>>>> sr = 44100
>>>> ksmps = 32
>>>> nchnls = 2
>>>> 0dbfs = 1
>>>> 
>>>> instr 1
>>>> 
>>>> kfreq ctrl7 1, 1, 20, 8000
>>>> 
>>>> a1	oscil  0.7, kfreq, 1
>>>> 
>>>> printk2 kfreq
>>>> 
>>>> outs a1, a1
>>>> 
>>>> endin
>>>> 
>>>> 
>>>> 
>>>> f1	0	4096	10	1
>>>> 
>>>> i1	0	3600
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Send bugs reports to the Sourceforge bug trackers
>>>> csound6:
>>>>            https://sourceforge.net/p/csound/tickets/
>>>> csound5:
>>>>            https://sourceforge.net/p/csound/bugs/
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> Send bugs reports to the Sourceforge bug trackers
>>> csound6:
>>>             https://sourceforge.net/p/csound/tickets/
>>> csound5:
>>>             https://sourceforge.net/p/csound/bugs/
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>>> 
>>> 
>>> 
>> 
>> 
>> Send bugs reports to the Sourceforge bug trackers
>> csound6:
>>           https://sourceforge.net/p/csound/tickets/
>> csound5:
>>           https://sourceforge.net/p/csound/bugs/
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>> 
>> 
>> 
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
>