Csound Csound-dev Csound-tekno Search About

SoundFont opcodes in Csound

Date2005-11-08 21:17
FromPrent Rodgers
SubjectSoundFont opcodes in Csound
Does anyone have an example of the sfinstr or sfplay opcodes producing
sound? I can't get them to generate a sound.





-W -G -m2 -+y -o sflib\soundfont.wav



  sr =3D 44100
  ksmps =3D 10
  nchnls =3D 2
  gir sfload "WST25FStein_00Sep22.SF2"
  sfilist gir ;   Instrument list of "WST25FStein_00Sep22.SF2"
              ;   0) WST_F44S-Baseline
  sfplist gir ;   Preset list of "WST25FStein_00Sep22.SF2"
              ;   0) WST44FGrand                prog:0   bank:0

  instr 1
  inotnum =3D 0 ; assign frequency directly in Hz

  ar1, ar2 sfinstr   p4,  inotnum, 10000, p5   , 0 , gir, 1
  outs ar1, ar2
  endin




;Inst Start        Dur  Vel    freq
i1  0.0000000000    3   10000   440




This results in the following console output:

SECTION 1:
new alloc for instr 1:
end of score.              overall amps:      0.0      0.0
            overall samples out of range:        0        0
0 errors in performance
peak CH 1: 0.000000  (written: 0.000000) at 0
peak CH 2: 0.000000  (written: 0.000000) at 0
166 3200-byte soundblks of shorts written to sflib\soundfont.wav (WAV)
Total processing time: 0.140 seconds

I've also tried sfplay, but get similar results. Any ideas?

Prent Rodgers
-- 
Music that's "Fake but Accurate"!
Web page: http://prodgers13.home.comcast.net
Podcast: http://podcast1024.libsyn.com
Another Podcast: http://BumperMusic.blogspot.com
Music: http://www.soundclick.com/PrentRodgers

Date2005-11-08 22:27
From"Robson Cozendey"
SubjectRe: SoundFont opcodes in Csound
I had the same problem with SoundFonts: the .sf2 file loads, the instruments 
in it are showed, but no sound comes out.

>From: Prent Rodgers 
>Reply-To: csound@lists.bath.ac.uk
>To: Csound List 
>Subject: [Csnd] SoundFont opcodes in Csound
>Date: Tue, 08 Nov 2005 13:17:44 -0800
>
>Does anyone have an example of the sfinstr or sfplay opcodes producing
>sound? I can't get them to generate a sound.
>
>
>
>
>
>-W -G -m2 -+y -o sflib\soundfont.wav
>
>
>
>  sr =3D 44100
>  ksmps =3D 10
>  nchnls =3D 2
>  gir sfload "WST25FStein_00Sep22.SF2"
>  sfilist gir ;   Instrument list of "WST25FStein_00Sep22.SF2"
>              ;   0) WST_F44S-Baseline
>  sfplist gir ;   Preset list of "WST25FStein_00Sep22.SF2"
>              ;   0) WST44FGrand                prog:0   bank:0
>
>  instr 1
>  inotnum =3D 0 ; assign frequency directly in Hz
>
>  ar1, ar2 sfinstr   p4,  inotnum, 10000, p5   , 0 , gir, 1
>  outs ar1, ar2
>  endin
>
>
>
>
>;Inst Start        Dur  Vel    freq
>i1  0.0000000000    3   10000   440
>
>
>
>
>This results in the following console output:
>
>SECTION 1:
>new alloc for instr 1:
>end of score.              overall amps:      0.0      0.0
>            overall samples out of range:        0        0
>0 errors in performance
>peak CH 1: 0.000000  (written: 0.000000) at 0
>peak CH 2: 0.000000  (written: 0.000000) at 0
>166 3200-byte soundblks of shorts written to sflib\soundfont.wav (WAV)
>Total processing time: 0.140 seconds
>
>I've also tried sfplay, but get similar results. Any ideas?
>
>Prent Rodgers
>--
>Music that's "Fake but Accurate"!
>Web page: http://prodgers13.home.comcast.net
>Podcast: http://podcast1024.libsyn.com
>Another Podcast: http://BumperMusic.blogspot.com
>Music: http://www.soundclick.com/PrentRodgers
>
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

_________________________________________________________________
Chegou o que faltava: MSN Acesso Grátis. Instale Já! 
http://www.msn.com.br/discador

Date2005-11-09 00:38
FromAnthony Kozar
SubjectRe: SoundFont opcodes in Csound
I have a very simple example that someone emailed to me that does work for
me.  Would you like me to email you the files privately?

Anthony Kozar
anthonykozar AT sbcglobal DOT net
http://akozar.spymac.com/

Prent Rodgers wrote on 11/8/05 4:17 PM:

> Does anyone have an example of the sfinstr or sfplay opcodes producing
> sound? I can't get them to generate a sound.

Date2005-11-09 06:30
FromBen Collver
SubjectRe: SoundFont opcodes in Csound
AttachmentsNone  

Date2005-11-09 14:36
FromPrent Rodgers
SubjectRe: SoundFont opcodes in Csound
Ben,
Could you also include the file 6-pchmidi.txt. It's in the .csd file as 
a macro, and the file won't play without it. Thanks.
Prent

Ben Collver wrote:
> On Tue, Nov 08, 2005 at 10:27:11PM +0000, Robson Cozendey wrote:
> 
>>I had the same problem with SoundFonts: the .sf2 file loads, the 
>>instruments in it are showed, but no sound comes out.
> 
> 
> Here is an example that works for me:
> 
> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-soundfont.csd
> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-example.sf2
> http://terrorpin.net/~ben/docs/alt/music/csound/work/pad.wav
> 
> I am using csound 4.23f13gbs.0
> 
> Cheers,
> 
> Ben

-- 

Date2005-11-09 14:38
FromPrent Rodgers
SubjectRe: SoundFont opcodes in Csound
Ben, There are two included files needed here, one called 6-midimod.txt 
and the other called 6-pchmidi.txt. Thanks.
Prent

Ben Collver wrote:
> On Tue, Nov 08, 2005 at 10:27:11PM +0000, Robson Cozendey wrote:
> 
>>I had the same problem with SoundFonts: the .sf2 file loads, the 
>>instruments in it are showed, but no sound comes out.
> 
> 
> Here is an example that works for me:
> 
> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-soundfont.csd
> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-example.sf2
> http://terrorpin.net/~ben/docs/alt/music/csound/work/pad.wav
> 
> I am using csound 4.23f13gbs.0
> 
> Cheers,
> 
> Ben

Date2005-11-09 14:50
FromBen Collver
SubjectRe: SoundFont opcodes in Csound
AttachmentsNone  

Date2005-11-09 14:52
FromBen Collver
SubjectRe: SoundFont opcodes in Csound
AttachmentsNone  

Date2005-11-09 16:28
FromPrent Rodgers
SubjectRe: SoundFont opcodes in Csound
Ben,
Thanks a million. I see my error now. I was setting the ivel (velocity 
offset) to a non-zero value.

Ben Collver wrote:
> These can be had at:
> 
> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-midimod.txt
> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-pchmidi.txt
> 
> Cheers,
> 
> Ben
> 
> On Wed, Nov 09, 2005 at 06:38:16AM -0800, Prent Rodgers wrote:
> 
>>Ben, There are two included files needed here, one called 6-midimod.txt 
>>and the other called 6-pchmidi.txt. Thanks.
>>Prent
>>
>>Ben Collver wrote:
>>
>>>On Tue, Nov 08, 2005 at 10:27:11PM +0000, Robson Cozendey wrote:
>>>
>>>
>>>>I had the same problem with SoundFonts: the .sf2 file loads, the 
>>>>instruments in it are showed, but no sound comes out.
>>>
>>>
>>>Here is an example that works for me:
>>>
>>>http://terrorpin.net/~ben/docs/alt/music/csound/work/6-soundfont.csd
>>>http://terrorpin.net/~ben/docs/alt/music/csound/work/6-example.sf2
>>>http://terrorpin.net/~ben/docs/alt/music/csound/work/pad.wav
>>>
>>>I am using csound 4.23f13gbs.0
>>>
>>>Cheers,
>>>
>>>Ben
>>
>>-- 
>>Send bugs reports to this list.
>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2005-11-09 17:05
FromJeff Harrington
SubjectRe: SoundFont opcodes in Csound
Prent I'd love to see your SoundFont example cuz I've been resorting to 
using Timidity for
microtonal soundfont support.  Also couldn't get them to work... You 
gonna post them at
your site? 

Jeff
http://jeffharrington.org

Prent Rodgers wrote:

> Ben,
> Thanks a million. I see my error now. I was setting the ivel (velocity 
> offset) to a non-zero value.
>
> Ben Collver wrote:
>
>> These can be had at:
>>
>> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-midimod.txt
>> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-pchmidi.txt
>>
>> Cheers,
>>
>> Ben
>>
>> On Wed, Nov 09, 2005 at 06:38:16AM -0800, Prent Rodgers wrote:
>>
>>> Ben, There are two included files needed here, one called 
>>> 6-midimod.txt and the other called 6-pchmidi.txt. Thanks.
>>> Prent
>>>
>>> Ben Collver wrote:
>>>
>>>> On Tue, Nov 08, 2005 at 10:27:11PM +0000, Robson Cozendey wrote:
>>>>
>>>>
>>>>> I had the same problem with SoundFonts: the .sf2 file loads, the 
>>>>> instruments in it are showed, but no sound comes out.
>>>>
>>>>
>>>>
>>>> Here is an example that works for me:
>>>>
>>>> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-soundfont.csd
>>>> http://terrorpin.net/~ben/docs/alt/music/csound/work/6-example.sf2
>>>> http://terrorpin.net/~ben/docs/alt/music/csound/work/pad.wav
>>>>
>>>> I am using csound 4.23f13gbs.0
>>>>
>>>> Cheers,
>>>>
>>>> Ben
>>>
>>>
>>> -- 
>>> Send bugs reports to this list.
>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>
>
>

Date2006-02-08 23:02
From"Robson Cozendey"
SubjectRe: SoundFont opcodes in Csound
Hi Anthony,

Sorry for the lateness of this message, but could you e-mail me these sound 
font example files?

Thanks in advance,
Robson

>From: Anthony Kozar 
>Reply-To: csound@lists.bath.ac.uk
>To: "csound@lists.bath.ac.uk" 
>Subject: Re: [Csnd] SoundFont opcodes in Csound
>Date: Tue, 08 Nov 2005 19:38:25 -0500
>
>I have a very simple example that someone emailed to me that does work for
>me.  Would you like me to email you the files privately?
>
>Anthony Kozar
>anthonykozar AT sbcglobal DOT net
>http://akozar.spymac.com/
>
>Prent Rodgers wrote on 11/8/05 4:17 PM:
>
> > Does anyone have an example of the sfinstr or sfplay opcodes producing
> > sound? I can't get them to generate a sound.
>
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

_________________________________________________________________
  
http://signup.alerts.msn.com/alerts/login.do?PINID=2430448&returnURL=http://copa.br.msn.com/