Csound Csound-dev Csound-tekno Search About

[Csnd] sfinstr3

Date2010-08-08 19:53
Frommenno
Subject[Csnd] sfinstr3
Hello people,

i am struggling with the difference between sfplay and sfinstr. I don't get
it. Maybe there is someone who is experienced in the subject.
This is the example i try:



; Select audio/midi flags here according to platform
; Audio out   Audio in    No messages
-odac           -iadc     -d   -M0     ;;;RT audio I/O, midi in
; For Non-realtime ouput leave only the line below:
; -o sfinstrm.wav -W ;;; for file output any platform



sr         = 44100
ksmps = 100
nchnls = 2

isf	sfload	"/media/LAC/VintageDreamsWaves-v2.sf2"
;	sfilist		isf
	sfplist	1
;	sfpassign	0, isf

	instr 1
; play from score and midi keyboard
	mididefault		60, p3
	midinoteonkey	p4, p5
inum	init	p4
ivel	init	p5
print	ivel

ivel	init	3*(ivel/127)					; pre-amplify
kamp	linsegr	1,1,1,.1,0
kfreq	init	1						;do not change freq from sf
a1, a2	sfinstr3	ivel, inum, kamp*ivel, kfreq, 1, 0
	outs	a1, a2
	
	endin
	


f0  60				; stay active for 1 minute

i1 0 1 60 100
i1 + 1 62 <
i1 + 1 65 <
i1 + 1 69 10




  and this is what i get back:


SoundFont file "/media/LAC/VintageDreamsWaves-v2.sf2" contains ROM samples !
At present time only RAM samples are allowed by sfload.
Session aborted !

What is this?
And when does one use sfplay and sfinstr ?

thank you,
Menno

Date2010-08-08 20:06
FromVictor Lazzarini
Subject[Csnd] Re: sfinstr3
That SF2 bank does not work. Maybe we should include a more useful  
one, such as the GM ones DrB. has released.

Victor
On 8 Aug 2010, at 19:53, menno wrote:

>
> Hello people,
>
> i am struggling with the difference between sfplay and sfinstr. I  
> don't get
> it. Maybe there is someone who is experienced in the subject.
> This is the example i try:
>
> 
> 
> ; Select audio/midi flags here according to platform
> ; Audio out   Audio in    No messages
> -odac           -iadc     -d   -M0     ;;;RT audio I/O, midi in
> ; For Non-realtime ouput leave only the line below:
> ; -o sfinstrm.wav -W ;;; for file output any platform
> 
> 
>
> sr         = 44100
> ksmps = 100
> nchnls = 2
>
> isf	sfload	"/media/LAC/VintageDreamsWaves-v2.sf2"
> ;	sfilist		isf
> 	sfplist	1
> ;	sfpassign	0, isf
>
> 	instr 1
> ; play from score and midi keyboard
> 	mididefault		60, p3
> 	midinoteonkey	p4, p5
> inum	init	p4
> ivel	init	p5
> print	ivel
>
> ivel	init	3*(ivel/127)					; pre-amplify
> kamp	linsegr	1,1,1,.1,0
> kfreq	init	1						;do not change freq from sf
> a1, a2	sfinstr3	ivel, inum, kamp*ivel, kfreq, 1, 0
> 	outs	a1, a2
> 	
> 	endin
> 	
> 
> 
> f0  60				; stay active for 1 minute
>
> i1 0 1 60 100
> i1 + 1 62 <
> i1 + 1 65 <
> i1 + 1 69 10
> 
> 
>
>
>  and this is what i get back:
>
>
> SoundFont file "/media/LAC/VintageDreamsWaves-v2.sf2" contains ROM  
> samples !
> At present time only RAM samples are allowed by sfload.
> Session aborted !
>
> What is this?
> And when does one use sfplay and sfinstr ?
>
> thank you,
> Menno
> -- 
> View this message in context: http://csound.1045644.n5.nabble.com/sfinstr3-tp2268186p2268186.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"
>



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"

Date2010-08-08 20:37
Frommenno
Subject[Csnd] Re: sfinstr3
ah, that explains why it does not work. I do not have permission to remove
"VintageDreamsWaves-v2.sf2" from /csound5/samples. Will you do it?
I have found the soundfonts Dr.B. released; are they GPL and can they be
included in the /manual/examples ?

Menno

Date2010-08-08 20:55
FromVictor Lazzarini
Subject[Csnd] Re: Re: sfinstr3
OK, I've removed that file and replaced it with sf_GMbank.sf2, from  
Dr.B's collection.

Victor
On 8 Aug 2010, at 20:37, menno wrote:

>
> ah, that explains why it does not work. I do not have permission to  
> remove
> "VintageDreamsWaves-v2.sf2" from /csound5/samples. Will you do it?
> I have found the soundfonts Dr.B. released; are they GPL and can  
> they be
> included in the /manual/examples ?
>
> Menno
> -- 
> View this message in context: http://csound.1045644.n5.nabble.com/sfinstr3-tp2268186p2268219.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"
>



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"