Csound Csound-dev Csound-tekno Search About

[Csnd] Issue with rtmidi

Date2014-07-12 15:54
From"Yogi A. Patel"
Subject[Csnd] Issue with rtmidi

Hi -

I'm running examples I found online under the real-time linux documentation. I am executing "csound lorenzFM.csd" and running into an error I can't find a solution for online.

root@beaglebone:~/audio-prc/src/pi_bone# csound lorenzFM.csd 
0dBFS level = 32768.0
Csound version 6.03.2 (double samples) Jul 10 2014
libsndfile-1.0.25
UnifiedCSD: lorenzFM.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
Elapsed time at end of orchestra compile: real: 0.079s, CPU: 0.060s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.087s, CPU: 0.080s
--Csound version 6.03.2 (double samples) Jul 10 2014
midi channel 1 using instr 1
midi channel 2 using instr 1
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
graphics suppressed, ascii substituted
0dBFS level = 1.0
ftable 8:
calling draw callback 
ftable 8: 512 points, scalemax 1.000
.-'''''-._
-' '.
- '.
.' -

- .
' -
. '

  • _
    • '_________________________________._____________________________________ - ' ' _ '. . - - - '_ ' . - ' .' -_ .' '-._____.-' error: -+rtmidi='alsa': unknown module *** error opening MIDI in device: -1 (Unknown MIDI error) inactive allocs returned to freespace end of score. overall amps: 0.00000 overall samples out of range: 0 1 errors in performance Elapsed time at end of performance: real: 0.129s, CPU: 0.090s

I thought the error was due to the alsa module not being installed - so I installed alsa-dev and libportaudio-dev but no luck.

I ran amidi -l and got the following:

root@beaglebone:~/audio-prc/src/pi_bone# amidi -l
Dir Device Name

But don't know how to solve that. Looked around, but no luck. All I found was some documentation saying I need to create a midi device, however I'm not sure how to do that.

Yogi


Date2014-07-12 16:01
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re:
AttachmentsNone  

Date2014-07-12 16:09
FromRory Walsh
SubjectRe: [Csnd] Issue with rtmidi
Have you set the rtmidi device in your CsOptions? Can you post the csd file?

On 12 July 2014 16:54, Yogi A. Patel  wrote:
> Hi -
>
> I'm running examples I found online under the real-time linux documentation.
> I am executing "csound lorenzFM.csd" and running into an error I can't find
> a solution for online.
>
> root@beaglebone:~/audio-prc/src/pi_bone# csound lorenzFM.csd
> 0dBFS level = 32768.0
> Csound version 6.03.2 (double samples) Jul 10 2014
> libsndfile-1.0.25
> UnifiedCSD: lorenzFM.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> Elapsed time at end of orchestra compile: real: 0.079s, CPU: 0.060s
> sorting score ...
> ... done
> Elapsed time at end of score sort: real: 0.087s, CPU: 0.080s
> --Csound version 6.03.2 (double samples) Jul 10 2014
> midi channel 1 using instr 1
> midi channel 2 using instr 1
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> graphics suppressed, ascii substituted
> 0dBFS level = 1.0
> ftable 8:
> calling draw callback
> ftable 8: 512 points, scalemax 1.000
> .-'''''-._
> -' '.
> - '.
> .' -
> - .
> ' -
> . '
>
> _
>
> . '_________________________________._____________________________________ -
> ' ' _ '. . - - - '_ ' . - ' .' -_ .' '-._____.-' error: -+rtmidi='alsa':
> unknown module *** error opening MIDI in device: -1 (Unknown MIDI error)
> inactive allocs returned to freespace end of score. overall amps: 0.00000
> overall samples out of range: 0 1 errors in performance Elapsed time at end
> of performance: real: 0.129s, CPU: 0.090s
>
> I thought the error was due to the alsa module not being installed - so I
> installed alsa-dev and libportaudio-dev but no luck.
>
> I ran amidi -l and got the following:
>
> root@beaglebone:~/audio-prc/src/pi_bone# amidi -l
> Dir Device Name
>
> But don't know how to solve that. Looked around, but no luck. All I found
> was some documentation saying I need to create a midi device, however I'm
> not sure how to do that.
>
> Yogi

Date2014-07-12 16:13
From"Yogi A. Patel"
SubjectRe: [Csnd] Issue with rtmidi
The CSD file is as follows:

<CsoundSynthesizer>
<CsOptions>
-+rtaudio=alsa  -B1024 -+rtmidi=alsa -M hw:1 -odac
</CsOptions>
<CsInstruments>
sr         =         24000
ksmps     =         45
0dbfs    =        1
 
gisin    ftgen   8, 0, 512, 10, 1
garvbL init 0
garvbR init 0

ctrlinit  1, 7,64,  11,52,12,30,13,11, 14,47, 15,0, 16,64, 17,64, 18,64  
                
;=============================================================================               
maxalloc 1, 6                        
    instr 1    ; Lorenz FM   

icps        cpsmidi
iamp        ampmidi    1

ihtim    =    .01        ;port time

  
kvol        midic7 7, 0, .5
kpvol        port kvol, ihtim
  
ksv          midic7      11,.1,8                ; The Prandtl Number or Sigma
kpsv        port ksv, ihtim

kmod        midic7    12,0,24           
kpmod        port kmod, ihtim

kbv          midic7      13, .1,1.667         ; Ratio Of the Length And Width
kpbv        port kbv, ihtim                    ; of the box

krv          midic7      14, 2, 10             ; The Rayleigh Number
kprv        port krv, ihtim

ax,ay,az     lorenz       kpsv, kprv, kpbv, .01, .6, .6, .6, 1
kx           downsamp  ax
ky           downsamp  ay
kz          downsamp  az
                
imatk        midic7      15,.001, 4
imdec        midic7      16,.001, 1
imsus        midic7      17, 0, 1
  
kenv        madsr    imatk, imdec, imsus, .01
afm        foscil    kenv*iamp, icps+kx, 1, 1+kz, kpmod*ky, gisin               
         out        afm * kpvol
garvbL = garvbL + (afm * .5)
garvbR = garvbR + (afm * .5)

endin

;=============================================================================

instr 999 ;Reverb
;vibrato amount
krev ctrl7 1, 18, 0, .5
aL, aR reverbsc garvbL, garvbR, .8 + .15*krev, 15000
outs aL * krev, aR * krev
garvbL = 0
garvbR = 0
endin

;=============================================================================





</CsInstruments>
<CsScore>

f0  600
i999 0 600

</CsScore>
</CsoundSynthesizer>
Yogi
On 07/12/2014 11:09 AM, Rory Walsh wrote:
Have you set the rtmidi device in your CsOptions? Can you post the csd file?

On 12 July 2014 16:54, Yogi A. Patel <yapatel@gatech.edu> wrote:
Hi -

I'm running examples I found online under the real-time linux documentation.
I am executing "csound lorenzFM.csd" and running into an error I can't find
a solution for online.

root@beaglebone:~/audio-prc/src/pi_bone# csound lorenzFM.csd
0dBFS level = 32768.0
Csound version 6.03.2 (double samples) Jul 10 2014
libsndfile-1.0.25
UnifiedCSD: lorenzFM.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
Elapsed time at end of orchestra compile: real: 0.079s, CPU: 0.060s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.087s, CPU: 0.080s
--Csound version 6.03.2 (double samples) Jul 10 2014
midi channel 1 using instr 1
midi channel 2 using instr 1
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
graphics suppressed, ascii substituted
0dBFS level = 1.0
ftable 8:
calling draw callback
ftable 8: 512 points, scalemax 1.000
.-'''''-._
-' '.
- '.
.' -
- .
' -
. '

_

. '_________________________________._____________________________________ -
' ' _ '. . - - - '_ ' . - ' .' -_ .' '-._____.-' error: -+rtmidi='alsa':
unknown module *** error opening MIDI in device: -1 (Unknown MIDI error)
inactive allocs returned to freespace end of score. overall amps: 0.00000
overall samples out of range: 0 1 errors in performance Elapsed time at end
of performance: real: 0.129s, CPU: 0.090s

I thought the error was due to the alsa module not being installed - so I
installed alsa-dev and libportaudio-dev but no luck.

I ran amidi -l and got the following:

root@beaglebone:~/audio-prc/src/pi_bone# amidi -l
Dir Device Name

But don't know how to solve that. Looked around, but no luck. All I found
was some documentation saying I need to create a midi device, however I'm
not sure how to do that.

Yogi

Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-07-12 16:42
FromRory Walsh
SubjectRe: [Csnd] Issue with rtmidi
Are you sure hw:1 is correct, could it be hw:0? I don't have access to
a midi controller here, but I usually find it's my hardware umber
that's not correct.