Csound Csound-dev Csound-tekno Search About

[Csnd] PortMIDI: selected input device 1: 'VirMIDI 1-0' (ALSA)

Date2005-08-21 05:53
Fromjjbenham@chicagoguitar.com (Jeremiah Benham)
Subject[Csnd] PortMIDI: selected input device 1: 'VirMIDI 1-0' (ALSA)
AttachmentsNone  

Date2005-08-21 06:15
Fromjjbenham@chicagoguitar.com (Jeremiah Benham)
SubjectRe: [Csnd] PortMIDI: selected input device 1: 'VirMIDI 1-0' (ALSA)
AttachmentsNone  

Date2005-08-21 06:24
FromKen
SubjectRe: [Csnd] PortMIDI: selected input device 1: 'VirMIDI 1-0' (ALSA)
Jeremiah Benham wrote:

>I don't know why but when I try to input from virmidi 1 csounds does not respond. The same csd file works if I set -M0 and it reads from:
>device 0: 'EMU10K1 MPU-401 (UART)'
>Thats cool I can do stuff with my externel keyboard but I want to be able to use csounds as a softsynth for a sequencer. That is why I want it be 
>able to successfully listen to virmidi. The csound options are set as:
>
>csound -b64 -B1024 -d -odac -M0
>
>I don't know if it is a portmidi issue or what it is. Csounds says its listening to virmidi 1-0 but when a sent midi info to virmidi 1-0 csound does 
>not respond as if it is not recieving and controller message. 
>
>Thanks,
>Jeremiah
>
>  
>
i'm having the same problem.  external keys fine, no virmidi between 
programs to csound...
-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-08-21 11:36
FromIstvan Varga
SubjectRe: [Csnd] PortMIDI: selected input device 1: 'VirMIDI 1-0' (ALSA)
This is a known ALSA problem, you can work around it by writing to a
separate virmidi port from the sequencer and connecting the two ports
with 'dd'. For example, if virmidi is card #1, and the sequencer writes
to virmidi 1-1 while Csound reads from 1-0, try running this command
in the background:

dd if=/dev/snd/midiC1D1 of=/dev/snd/midiC1D0 bs=1

Jeremiah Benham wrote:

> I don't know why but when I try to input from virmidi 1 csounds does
> not respond. The same csd file works if I set -M0 and it reads from: 
> device 0: 'EMU10K1 MPU-401 (UART)' Thats cool I can do stuff with my
> externel keyboard but I want to be able to use csounds as a softsynth
> for a sequencer. That is why I want it be able to successfully listen
> to virmidi. The csound options are set as:
> 
> csound -b64 -B1024 -d -odac -M0
> 
> I don't know if it is a portmidi issue or what it is. Csounds says
> its listening to virmidi 1-0 but when a sent midi info to virmidi 1-0
> csound does not respond as if it is not recieving and controller
> message.
-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-08-23 04:20
FromAndres Cabrera
SubjectRe: [Csnd] PortMIDI: selected input device 1: 'VirMIDI 1-0' (ALSA)
Hi,
Or use the Midi Through port instead of vir-midi.

Cheers,
Andres

On Sun, 2005-08-21 at 05:36, Istvan Varga wrote:
> This is a known ALSA problem, you can work around it by writing to a
> separate virmidi port from the sequencer and connecting the two ports
> with 'dd'. For example, if virmidi is card #1, and the sequencer writes
> to virmidi 1-1 while Csound reads from 1-0, try running this command
> in the background:
> 
> dd if=/dev/snd/midiC1D1 of=/dev/snd/midiC1D0 bs=1
> 
> Jeremiah Benham wrote:
> 
> > I don't know why but when I try to input from virmidi 1 csounds does
> > not respond. The same csd file works if I set -M0 and it reads from: 
> > device 0: 'EMU10K1 MPU-401 (UART)' Thats cool I can do stuff with my
> > externel keyboard but I want to be able to use csounds as a softsynth
> > for a sequencer. That is why I want it be able to successfully listen
> > to virmidi. The csound options are set as:
> > 
> > csound -b64 -B1024 -d -odac -M0
> > 
> > I don't know if it is a portmidi issue or what it is. Csounds says
> > its listening to virmidi 1-0 but when a sent midi info to virmidi 1-0
> > csound does not respond as if it is not recieving and controller
> > message.

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-08-24 16:44
Fromjjbenham@chicagoguitar.com (Jeremiah Benham)
SubjectRe: [Csnd] PortMIDI: selected input device 1: 'VirMIDI 1-0' (ALSA)
AttachmentsNone  

Date2005-08-24 21:43
FromPeder Karlsson
Subject[Csnd] [OT] Perfect Pitch Practise
hi there,

those of you who read musicians magazines have probably read ads from 
David L Burge about his perfect pitch training courses.

I bought his tapes years ago & it makes sense to me. But you need to be 
two people to play notes at random from the piano. in short.

here is a csound orc+sco that is an attempt to do what the first 
chapters of the perfect pitch course does. it plays notes at random 
from a diminished chord - f sharp, e flat, a and c. without the need of 
another (interested) person. ;-)

the first lesson is to just listen to an f sharp on the piano and get 
acquainted with its characteristics. then after a while you play an e 
flat and notice the difference. not in timbre, but in "pitch color". as 
Dr Burge calls it.

after a week, add an a. another week later, add the c. don't stress the 
brain, please.

when somebody plays the four notes of the diminished chord at random, 
in different octaves, the relative pitch hearing will get confused, and 
the only way you can tell which note it is, is to use your perfect 
pitch abilities.

about the orc -
the line with the variable "ival" is where you specify a table with 
notes - the notes that will chosen by the random generator:
10 - a function table that contains f sharps and e flats, in a few 
different octaves
11 - an f table with f sharps, e flats and a's
12- an f table with f sharps, e flats, a's and c's.

the correct answer is printed. to help you if you are not quite sure 
which note is played. ;-)

the next step would be to add c sharp, e natural, g natural and b flat, 
successively.
and then the remaining four notes.
but I'm not at that stage yet in my perfect pitch training. ;-)

have fun!
;-)


/Peder Karlsson



sr		=	44100
kr		=	4410
ksmps		=	10
nchnls	=	2

	instr 1

inum	=		30	; number of notes played in a session
reset:
	timout 0, p3/inum, contin
	reinit reset

contin:

indx	rnd31		6, 0
ival	=		10		; 10 - F sharp and E flat, 11 - F sharp, E flat & A, 12 - F 
sharp, E flat, A & C	
ipch	table 	indx+8, ival		

a1	oscili	60000/ipch, cpspch(ipch), 1
kenv1	oscil1i	0, 1, p3/inum, 2
a2	oscili	60000/ipch, cpspch(ipch), 3
kenv2	oscil1i	0, 1, p3/inum, 4
a3	oscili	60000/ipch, cpspch(ipch), 5
kenv3	oscil1i	0, 1, p3/inum, 6
inot =		frac(ipch)*100


if	(inot<1) igoto printc
if	(inot<4) igoto printeflat
if	(inot<7) igoto printfsharp
if	(inot<10) igoto printa

igoto playit

printc:
	prints	"C \\n \\n"
	igoto playit

printeflat:
	prints	"E flat \\n \\n"
	igoto playit

printfsharp:
	prints	"F sharp \\n \\n"
	igoto playit

printa:
	prints	"A \\n \\n"
	igoto playit




playit:

aout =		(a1*kenv1) + (a2*kenv2) + (a3*kenv3)
	outs		aout, aout

	rireturn
	endin




f 1 0 8192 10 1
f 2 0 1024 7 0 2 1 18 .7 251 .4 251 0 502 0
f 3 0 8192 -10 0 .2
f 4 0 1024 7 0 2 1 18 .7 201 .4 311 0 492 0
f 5 0 8192 -10 0 0 0 .05
f 6 0 1024 7 0 2 1 18 .7 51 .4 471 0 482 0


f 10 0 16 -2 6.03 6.06 6.03 6.06 7.03 7.06 7.03 7.06 8.03 8.06 8.03 
8.06 9.03 9.06 9.03 9.06 ; F sharp and E flat
f 11 0 16 -2 6.03 6.06 6.09 6.06 7.03 7.06 7.09 7.03 8.09 8.03 8.06 
8.09 9.03 9.06 9.09 9.06 ; F sharp, E flat & A
f 12 0 16 -2 6.00 6.03 6.06 6.09 7.00 7.03 7.06 7.09 8.00 8.03 8.06 
8.09 9.00 9.03 9.06 9.09 ; F sharp, E flat, A & C


t 0 40
i 1 0 60






Version: 2
Render: Real
Ask: Yes
Functions: Window
Options: -b64 -A 
-oSystem&Program:Users:pederkar:CsoundFiles:PerfectPitch4.aif -s -m7 -R 
-Lstdin


ioView nobackground {65535, 65535, 65535}
ioListing {10, 10} {400, 500}


-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-08-25 03:12
FromAnthony Kozar
SubjectRe: [Csnd] [OT] Perfect Pitch Practise
Thanks Peder!

In my youth, I was obsessed with perfect pitch (which a friend of mine had,
but I did not).  I too was sucked into the David Burge tapes but never got
very far with them.

Maybe it's time to give it another try?

Anthony Kozar
anthonykozar@sbcglobal.net
http://akozar.spymac.net/


Peder Karlsson wrote on 8/24/05 4:43 PM:

> those of you who read musicians magazines have probably read ads from
> David L Burge about his perfect pitch training courses.
> 
> I bought his tapes years ago & it makes sense to me. But you need to be
> two people to play notes at random from the piano. in short.
> 
> here is a csound orc+sco that is an attempt to do what the first
> chapters of the perfect pitch course does.

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-08-25 14:30
FromDave Phillips
SubjectRe: [Csnd] [OT] Perfect Pitch Practise
Larry Troxler wrote:

>Relative pitch is what you want to learn, not perfect pitch.
>
I went through the Modus Novus and Modus Vetus methods, they were very 
helpful, especially Modus Novus. IIRC the preface to Modus Novus had 
some comments regarding the difficulties someone with perfect pitch 
might have with the method.

The free-as-in-libre Solfege is also a fine learning aid.

Best,

dp



-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-08-25 17:00
FromLarry Troxler
SubjectRe: [Csnd] [OT] Perfect Pitch Practise
AttachmentsNone  

Date2005-08-25 21:34
FromPeder Karlsson
SubjectRe: [Csnd] [OT] Perfect Pitch Practise
come on, it's not a curse! and from what I've heard, perfect pitch 
hearing is not an absolute.

since my own experience of it is limited, I'm not gonna argue about it .

I hear relative pitch quite good and I am not planning to lose that 
ability. ;-)

I think it's fun, I let csound play the PerfectPitch file, and then I 
play the notes I hear on guitar. it's good also for hearing which 
octave.

if somebody has any use of the file I posted, please let me know!

/Peder Karlsson

> Why would anyone _want_ to have perfect pitch? For musicians it's a 
> curse!
> From what I understand, it hampers listening to any recording that's
> transposed, or playing a piece transposed, because your ear is hearing 
> the
> absolute pitches, and not the relationships between them.
>
> Relative pitch is what you want to learn, not perfect pitch.
>
>

-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk