Thread: [Gambas-user] R: Another use case of gb.openal
Brought to you by:
gambas
From: PICCORO M. L. <mck...@gm...> - 2013-07-23 14:22:31
|
From: Ru Vuott <vu...@ya...> > ...but you knows I'm Midi maniac ;-) so I wanted to try a Midi file. > > In console I received those notices: > fluidsynth: warning: No preset found on channel 0 [bank=0 prog=56] > fluidsynth: warning: No preset found on channel 1 [bank=0 prog=61] > fluidsynth: warning: No preset found on channel 2 [bank=0 prog=32] > fluidsynth: warning: No preset found on channel 3 [bank=0 prog=65] > fluidsynth: warning: No preset found on channel 4 [bank=0 prog=66] > fluidsynth: warning: No preset found on channel 5 [bank=0 prog=66] > fluidsynth: warning: No preset found on channel 6 [bank=0 prog=67] > fluidsynth: warning: No preset found on channel 7 [bank=0 prog=71] > fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0] > > So I run FluidSynth before your test-openal, but I otained same warnings. > u must use a midi bank file.. .. i mean, u'r channels has no instruments loaded.. so dont sound anything due not defined any instrument/sound --- for more sound linux related use venenux. www.venenux.net |
From: PICCORO M. L. <mck...@gm...> - 2013-07-23 16:58:02
|
> I successfully loaded a sound bank file (by using the > Alure.SetStreamPatchset method or the FLUID_SOUNDFONT environment variable). two possible reasons: 1) alure/fluithsynth not property configure to use right out module (alsa, jack, etc) 2) u'r sound font loaded are only sound efects and the sound defined in midi channels are not property setteld to sound as spectek with these instruments defined.. so u must use a good sound fount with large spectre of sounds.. like yamaha sound font midi piano |
From: Benoît M. <ga...@us...> - 2013-07-23 14:33:57
|
Le 23/07/2013 16:22, PICCORO McKAY Lenz a écrit : > From: Ru Vuott <vu...@ya...> > >> ...but you knows I'm Midi maniac ;-) so I wanted to try a Midi file. >> >> In console I received those notices: >> fluidsynth: warning: No preset found on channel 0 [bank=0 prog=56] >> fluidsynth: warning: No preset found on channel 1 [bank=0 prog=61] >> fluidsynth: warning: No preset found on channel 2 [bank=0 prog=32] >> fluidsynth: warning: No preset found on channel 3 [bank=0 prog=65] >> fluidsynth: warning: No preset found on channel 4 [bank=0 prog=66] >> fluidsynth: warning: No preset found on channel 5 [bank=0 prog=66] >> fluidsynth: warning: No preset found on channel 6 [bank=0 prog=67] >> fluidsynth: warning: No preset found on channel 7 [bank=0 prog=71] >> fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0] >> >> So I run FluidSynth before your test-openal, but I otained same warnings. >> > > u must use a midi bank file.. .. i mean, u'r channels has no instruments > loaded.. so dont sound anything due not defined any instrument/sound > I successfully loaded a sound bank file (by using the Alure.SetStreamPatchset method or the FLUID_SOUNDFONT environment variable). The warnings disappeared, but I got no sound at all. :-/ -- Benoît Minisini |
From: Ru V. <vu...@ya...> - 2013-07-23 21:16:27
|
-------------------------------------------- Mar 23/7/13, Benoît Minisini <ga...@us...> ha scritto: > I successfully loaded a sound bank file (by using the > Alure.SetStreamPatchset method or the FLUID_SOUNDFONT > environment variable). Very interesting. > > The warnings disappeared, but I got no sound at all. :-/ I want to experiment it. Bye vuott |
From: Ru V. <vu...@ya...> - 2013-07-23 23:11:20
|
Hello Benoît > I successfully loaded a sound bank file (by using the > Alure.SetStreamPatchset method or the FLUID_SOUNDFONT > environment variable). > > The warnings disappeared, but I got no sound at all. :-/ > > -- > Benoît Minisini I started from that your message (I sent my message where I was told that I would have tried) and I wrote a GAMAS code via Alure API external function. Well, so I installed "FluidSynth" (I had only QSynth), and I inserted that function: alureSetStreamPatchset(streamP, "/home/vuott/Scrivania/GM (62mb).sf2") that is the second parameter is path of soundfont .sf2 . So, it WORKSSS ! I can hear the Midi file, Benoît ! Obviously, the sounds quality results from soundfont quality loaded by that function. Bye vuott |
From: Ru V. <vu...@ya...> - 2013-07-31 10:46:39
|
Hello Benoît, I'ld like to come back on this argument: gb.openal & Midi. Surely you remember that I wrote you that I was able to run Midi file using the function: AlureSetStreamPatchset() but using the Alure API (NOT gb.openal). Well, today I wanted to try running Midi files by using the features of the new Gambas component: gb.openal. Well, I did, and I'll send you the simple code that I used: **************************** Public Sub Form_Open() Dim percorsoFile As String = "/path/of/my/file.mid" Dim src, lungh, ast, isdone As Integer Dim ast As AlureStream Alure.InitDevice(Null, Null) src = Al.GenSources(1)[0] lungh = Stat(percorsoFile).Size ast = Alure.CreateStreamFromFile(percorsoFile, lungh, 0) Alure.SetStreamPatchset(ast, "/path/of/my/soundfont/file.sf2") Alure.PlaySourceStream(src, ast, 3, 0) While isdone = 0 Alure.Update() Wend End *********************************************** Regards vuott -------------------------------------------- Mar 23/7/13, Benoît Minisini <ga...@us...> ha scritto: Oggetto: Re: [Gambas-user] R: Another use case of gb.openal A: "mailing list for gambas users" <gam...@li...> Data: Martedì 23 luglio 2013, 16:33 Le 23/07/2013 16:22, PICCORO McKAY Lenz a écrit : > From: Ru Vuott <vu...@ya...> > >> ...but you knows I'm Midi maniac ;-) so I wanted to try a Midi file. >> >> In console I received those notices: >> fluidsynth: warning: No preset found on channel 0 [bank=0 prog=56] >> fluidsynth: warning: No preset found on channel 1 [bank=0 prog=61] >> fluidsynth: warning: No preset found on channel 2 [bank=0 prog=32] >> fluidsynth: warning: No preset found on channel 3 [bank=0 prog=65] >> fluidsynth: warning: No preset found on channel 4 [bank=0 prog=66] >> fluidsynth: warning: No preset found on channel 5 [bank=0 prog=66] >> fluidsynth: warning: No preset found on channel 6 [bank=0 prog=67] >> fluidsynth: warning: No preset found on channel 7 [bank=0 prog=71] >> fluidsynth: warning: No preset found on channel 9 [bank=128 prog=0] >> >> So I run FluidSynth before your test-openal, but I otained same warnings. >> > > u must use a midi bank file.. .. i mean, u'r channels has no instruments > loaded.. so dont sound anything due not defined any instrument/sound > I successfully loaded a sound bank file (by using the Alure.SetStreamPatchset method or the FLUID_SOUNDFONT environment variable). The warnings disappeared, but I got no sound at all. :-/ -- Benoît Minisini ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gambas-user |