• Welcome to Dark Bit Factory & Gravity.
 

Freebasic - Farbrausch libV2 - V2.1.0 + V2.1.5

Started by Rbz, February 01, 2009

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rbz

Just for the sake of completeness  ;), here is freebasic compatible library of "Farbrausch libV2" (XP / Vista compatible)


Install V2.1.0:
-----------
From "freebasic_libV2.zip" file extract and copy the file "libV2.a"
library to the freebasic install folder:
Eg.:   C:\FreeBasic\lib\win32
And "libv2.bi" to the folder C:\FreeBasic\inc


Install V2.1.5:
-----------
From "freebasic_libV215.zip" file extract and copy the file "libV215.a"
library to the freebasic install folder:
Eg.:   C:\FreeBasic\lib\win32
And "libv215.bi" to the folder C:\FreeBasic\inc

Check out example test folder


More Songs here:
ftp://ftp.modland.com/pub/modules/V2/
Challenge Trophies Won:

Shockwave

Another Karmic moment for you Rbz.

Nice one mate :)
It plays wonderfully well here.
I will need to add this to the resources section soon (along with some others).
Shockwave ^ Codigos
Challenge Trophies Won:

benny!

That's truely great news for all freebasic demo coders.
Cool, rbz!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Rbz

Challenge Trophies Won:

Shockwave

Does the song automatically loop?

The example seems to play once :) Cant see any instructions in the source.
Shockwave ^ Codigos
Challenge Trophies Won:

Rbz

Quote from: Shockwave on February 01, 2009
Does the song automatically loop?

The example seems to play once :) Cant see any instructions in the source.
I'm not sure either mate, my guess is that it should not to be meant to loop.

Challenge Trophies Won:

Clyde

This is sweet work indeed master Rbz. :D

First thing I noticed is the song file size is a bit on the big side, or maybe it's just the example song length. I will check out the linky, and try some more out.

I like the idea of the V2 Soft Synth alot, as you can somehow incorporate speech into the tune; ( Clyde thats probably why it's called a soft synth, berk ) as heard in a few of the popular FR releases.

However I have yet to get the composer to work myself. There was talk if im not mistaken about adding it to WinAmp, but no joys there. Maybe I can persuade one of my musical chiefs to try it out, if theres an editor / tracker that is compatible with it.

I wonder what else can be done with it, any monitoring / syncing to be done, like Samples being played?

Also how does that command about the music being out of alignment to the visuals work exactly?

Im just VERY curious on the abilities of it. And you've done us proud Rbz and thankyou.

Smart,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Shockwave

It will crunch down to about 20kb with the song rbz used as an example clyde,
as for sync, I think that you can use the song timer to do your sync, I don't think that this allows you to monitor what sound effect is being played, I might be wrong though.
Shockwave ^ Codigos
Challenge Trophies Won:

Rbz

With this lib, as it is, you can only synch your effects with song timer (ssGetTime) events, maybe fr  guys have one special version of it (internal use only), which can be synchronized with MIDI events etc...

Challenge Trophies Won:

Shockwave

Quote from: rbz on February 12, 2009
With this lib, as it is, you can only synch your effects with song timer (ssGetTime) events, maybe fr  guys have one special version of it (internal use only), which can be synchronized with MIDI events etc...

I'm pretty certain that they do.
Shockwave ^ Codigos
Challenge Trophies Won:

energy

Hi Rbraz,
Thanx for sharing!
is this the Replayer for the new V2M Sounds?
The new sounds arent compatible with the old V2M replayer!
Im currently working on.
Here are 2 compiled exe, 1 converted sound and the converter...

coding: jwasm,masm
hobby: www.scd2003.de

Rbz

@energy: this one is based on the old version 1.0, I didn't know about the new v.1.5  oO

And yes, the new version have everything someone need to synch with visuals, very nice :)

I'm going to make another wrapper for FB users.
Challenge Trophies Won:

Clyde

Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

energy

coding: jwasm,masm
hobby: www.scd2003.de

Clyde

#14
Shame they have no instructions / documention on how to compose libV2 songs.
And like I thought it has the plugins to be able to listen to tunes via WinAmp.

I also Googled for Buzz Machines, seems like a sample generator.

I would really be interested, as im sure others who are affraid to ask are as well, would like to know how in a seperate post, how it's possible to actually make a v2 song in an editor / tracker fashion.

My next little question what is the difference between libv2 and the other BR404 Synth; which has an editor, I believe? Can people make v2 songs in that ?

Chin Chin,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Rbz

Ok it's done :), check the attached file below:

Functions:
----------
' init sound system
' data: pointer to V2M file
' SampleRate: song Sample Rate (default=44100)
' Tickspersec: song ticks per second (default=1000)
' hWnd: window handle
Declare Function libV215_Init cdecl Alias "libV215_Init"(byval music as any ptr, byval SampleRate as integer, byval Tickspersec as integer, byval hWnd as HWND) as integer

' start playing (from song start)
'a_time   : time offset from song start in msecs
Declare Sub libV215_Play cdecl Alias "libV215_Play"(byval a_time as integer)

' stop playing
' a_fadetime : optional fade out time in msecs
Declare Sub libV215_Stop cdecl Alias "libV215_Stop"(byval a_fadetime as integer)
   
' close sound system
Declare Sub libV215_Close cdecl Alias "libV215_Close"()   

' returns if song is currently playing
Declare Function libV215_IsPlaying cdecl Alias "libV215_IsPlaying"  () as integer

' sets operation mode of VU meters
' mode : 0 for peak meters, 1 for RMS meters
Declare Sub libV215_SetVUMode cdecl Alias "libV215_SetVUMode"(byval mode as integer)

' retrieves VU meter data for a channel
' ch   : channel to retrieve (0..15)
' l    : pointer to float variable where left VU is stored
' r    : pointer to float variable where right VU is stored
Declare Sub libV215_GetChannelVU cdecl Alias "libV215_GetChannelVU"(byval ch as integer, byval l as single ptr, byval r as single ptr)

' gets sample-exact and latency compensated current play position
Declare Function libV215_GetCurSmp cdecl Alias "libV215_GetCurSmp"  () as long
   
' sets player volume (default is 1.0)
Declare Sub libV215_SetVolume cdecl Alias "libV215_SetVolume"(byval volume as single)

' forces rendering thread to update. On single-core CPUs it's a good idea to
' call this once per frame (improves A/V sync and reduces any stuttering),
' with more than one CPU it's pretty much useless.
Declare Sub libV215_Tick cdecl Alias "libV215_Tick"()



QuoteI would really be interested, as im sure others who are affraid to ask are as well, would like to know how in a seperate post, how it's possible to actually make a v2 song in an editor / tracker fashion.
@Clyde: I think you will need some help from a experienced V2M composer.

QuoteMy next little question what is the difference between libv2 and the other BR404 Synth;
They are both synth players, V2 was done by kb and br404 done by bero

Quotewhich has an editor, I believe? Can people make v2 songs in that ?
Those synth work as VSTi pluggins for trakers like for example buzzmachine, maybe your musician friend can help you on how to install and work with those VSTi pluggins.
Challenge Trophies Won:

Shockwave

Shockwave ^ Codigos
Challenge Trophies Won:

Rbz

Thanks mate

Check the attached file below and feel the power  ;)
Challenge Trophies Won:

Clyde

Brilliant, and thankyou for your advice, tips and ability.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Shockwave

The Product will make you beautiful.
Shockwave ^ Codigos
Challenge Trophies Won: