Author Topic: Freebasic - Farbrausch libV2 - V2.1.0 + V2.1.5  (Read 14914 times)

0 Members and 1 Guest are viewing this topic.

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
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/
« Last Edit: February 16, 2009 by rbz »
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic - Farbrausch libV2
« Reply #1 on: February 01, 2009 »
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:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: Freebasic - Farbrausch libV2
« Reply #2 on: February 01, 2009 »
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:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Freebasic - Farbrausch libV2
« Reply #3 on: February 01, 2009 »
Thanks to kb^fr  :)
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic - Farbrausch libV2
« Reply #4 on: February 01, 2009 »
Does the song automatically loop?

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

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Freebasic - Farbrausch libV2
« Reply #5 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:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Freebasic - Farbrausch libV2
« Reply #6 on: February 11, 2009 »
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:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic - Farbrausch libV2
« Reply #7 on: February 12, 2009 »
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:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Freebasic - Farbrausch libV2
« Reply #8 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...

Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic - Farbrausch libV2
« Reply #9 on: February 13, 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:

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: Freebasic - Farbrausch libV2
« Reply #10 on: February 13, 2009 »
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

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Freebasic - Farbrausch libV2
« Reply #11 on: February 13, 2009 »
@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:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Freebasic - Farbrausch libV2
« Reply #12 on: February 13, 2009 »
AWESOME!!!!!!! :D
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline energy

  • Amiga 1200
  • ****
  • Posts: 280
  • Karma: 25
    • View Profile
Re: Freebasic - Farbrausch libV2
« Reply #13 on: February 14, 2009 »
coding: jwasm,masm
hobby: www.scd2003.de

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Freebasic - Farbrausch libV2
« Reply #14 on: February 14, 2009 »
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.
« Last Edit: February 14, 2009 by Clyde »
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Freebasic - Farbrausch libV2 - v1.0 + v1.5
« Reply #15 on: February 14, 2009 »
Ok it's done :), check the attached file below:

Functions:
----------
Code: [Select]
' 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"()


Quote
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.
@Clyde: I think you will need some help from a experienced V2M composer.

Quote
My 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

Quote
which 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:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic - Farbrausch libV2
« Reply #16 on: February 14, 2009 »
Thats fantastic mate :)
K++
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Freebasic - Farbrausch libV2 - v1.0 + v1.5
« Reply #17 on: February 14, 2009 »
Thanks mate

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

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Freebasic - Farbrausch libV2
« Reply #18 on: February 14, 2009 »
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:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17407
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Freebasic - Farbrausch libV2
« Reply #19 on: February 14, 2009 »
The Product will make you beautiful.
Shockwave ^ Codigos
Challenge Trophies Won: