Csound Csound-dev Csound-tekno Search About

Csound with Doepfer Dark Link

Date2015-04-19 20:28
FromDave Seidel
SubjectCsound with Doepfer Dark Link
AttachmentsNone  None  
Hi all,

I'm just getting started trying to use Csound with a Doepfer Dark Link. This is a hardware that takes MIDI input and converts it into CV output. Has anyone else tried this yet?

I'm on Linux Mint with alsa, and the Dark Link shows up as "hw:2,0,0' using "amidi -l". I tried running midion2.csd (Csound manual example) with the command line

    csound -+rtmidi=alsa -Q hw:2,0,0 -o /dev/null midion2.csd

(not setting -M because I'm not using MIDI inputs, only output) and at the end of the brief run I get

    ALSA lib rawmidi_hw.c:133:(snd_rawmidi_hw_drain) SNDRV_RAWMIDI_IOCTL_DRAIN failed: Input/output error

Is this because I'm not using an input device? I also don't see any output from the Dark Link (monitoring with a multimeter).

- Dave

P.S. Here's the full console output:

virtual_keyboard real time MIDI plugin for Csound
Error: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
0dBFS level = 32768.0
Csound version 6.04 (double samples) Apr  5 2015
libsndfile-1.0.25
UnifiedCSD:  midion2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
Error: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
ALSA: opened MIDI output device 'hw:2,0'
--Csound version 6.04 (double samples) Apr  5 2015
graphics suppressed, ascii substituted
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of shorts to /dev/null (WAV)
SECTION 1:
new alloc for instr 1:
B  0.000 .. 60.000 T 60.000 TT 60.000 M:  0.00000  0.00000
B 60.000 .. 60.001 T 60.001 TT 60.001 M:  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.   overall amps:  0.00000  0.00000
  overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 0.130s, CPU: 0.078s
ALSA lib rawmidi_hw.c:133:(snd_rawmidi_hw_drain) SNDRV_RAWMIDI_IOCTL_DRAIN failed: Input/output error
512 1024 sample blks of shorts written to /dev/null (WAV)


Date2015-04-20 16:40
FromPaul Batchelor
SubjectRe: Csound with Doepfer Dark Link
AttachmentsNone  None  
Have you tried using any other applications other than Csound to send MIDI via ALSA? Something like PD, Qtractor, Rosegarden, etc...

On Sun, Apr 19, 2015 at 3:28 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
Hi all,

I'm just getting started trying to use Csound with a Doepfer Dark Link. This is a hardware that takes MIDI input and converts it into CV output. Has anyone else tried this yet?

I'm on Linux Mint with alsa, and the Dark Link shows up as "hw:2,0,0' using "amidi -l". I tried running midion2.csd (Csound manual example) with the command line

    csound -+rtmidi=alsa -Q hw:2,0,0 -o /dev/null midion2.csd

(not setting -M because I'm not using MIDI inputs, only output) and at the end of the brief run I get

    ALSA lib rawmidi_hw.c:133:(snd_rawmidi_hw_drain) SNDRV_RAWMIDI_IOCTL_DRAIN failed: Input/output error

Is this because I'm not using an input device? I also don't see any output from the Dark Link (monitoring with a multimeter).

- Dave

P.S. Here's the full console output:

virtual_keyboard real time MIDI plugin for Csound
Error: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
0dBFS level = 32768.0
Csound version 6.04 (double samples) Apr  5 2015
libsndfile-1.0.25
UnifiedCSD:  midion2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
Error: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
ALSA: opened MIDI output device 'hw:2,0'
--Csound version 6.04 (double samples) Apr  5 2015
graphics suppressed, ascii substituted
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of shorts to /dev/null (WAV)
SECTION 1:
new alloc for instr 1:
B  0.000 .. 60.000 T 60.000 TT 60.000 M:  0.00000  0.00000
B 60.000 .. 60.001 T 60.001 TT 60.001 M:  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.   overall amps:  0.00000  0.00000
  overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 0.130s, CPU: 0.078s
ALSA lib rawmidi_hw.c:133:(snd_rawmidi_hw_drain) SNDRV_RAWMIDI_IOCTL_DRAIN failed: Input/output error
512 1024 sample blks of shorts written to /dev/null (WAV)


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



Date2015-04-20 16:51
FromDave Seidel
SubjectRe: Csound with Doepfer Dark Link
AttachmentsNone  None  
No, but that's a good idea. Might have nothing to do with Csound. Thanks for the suggestion.

On Mon, Apr 20, 2015 at 11:40 AM, Paul Batchelor <ralphbluecoat@gmail.com> wrote:
Have you tried using any other applications other than Csound to send MIDI via ALSA? Something like PD, Qtractor, Rosegarden, etc...

On Sun, Apr 19, 2015 at 3:28 PM, Dave Seidel <dave.seidel@gmail.com> wrote:
Hi all,

I'm just getting started trying to use Csound with a Doepfer Dark Link. This is a hardware that takes MIDI input and converts it into CV output. Has anyone else tried this yet?

I'm on Linux Mint with alsa, and the Dark Link shows up as "hw:2,0,0' using "amidi -l". I tried running midion2.csd (Csound manual example) with the command line

    csound -+rtmidi=alsa -Q hw:2,0,0 -o /dev/null midion2.csd

(not setting -M because I'm not using MIDI inputs, only output) and at the end of the brief run I get

    ALSA lib rawmidi_hw.c:133:(snd_rawmidi_hw_drain) SNDRV_RAWMIDI_IOCTL_DRAIN failed: Input/output error

Is this because I'm not using an input device? I also don't see any output from the Dark Link (monitoring with a multimeter).

- Dave

P.S. Here's the full console output:

virtual_keyboard real time MIDI plugin for Csound
Error: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
0dBFS level = 32768.0
Csound version 6.04 (double samples) Apr  5 2015
libsndfile-1.0.25
UnifiedCSD:  midion2.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
Error: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
rtaudio: ALSA module enabled
rtmidi: ALSA Raw MIDI module enabled
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
ALSA: opened MIDI output device 'hw:2,0'
--Csound version 6.04 (double samples) Apr  5 2015
graphics suppressed, ascii substituted
0dBFS level = 1.0
orch now loaded
audio buffered in 256 sample-frame blocks
writing 1024-byte blks of shorts to /dev/null (WAV)
SECTION 1:
new alloc for instr 1:
B  0.000 .. 60.000 T 60.000 TT 60.000 M:  0.00000  0.00000
B 60.000 .. 60.001 T 60.001 TT 60.001 M:  0.00000  0.00000
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.   overall amps:  0.00000  0.00000
  overall samples out of range:        0        0
0 errors in performance
Elapsed time at end of performance: real: 0.130s, CPU: 0.078s
ALSA lib rawmidi_hw.c:133:(snd_rawmidi_hw_drain) SNDRV_RAWMIDI_IOCTL_DRAIN failed: Input/output error
512 1024 sample blks of shorts written to /dev/null (WAV)


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here