Jump to content


Photo

BASS SOUND-VIDEO ENGINE ( BASS WRAPER ) Ver 2.0


  • Please log in to reply
67 replies to this topic

#21 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 02 November 2011 - 11:28 PM

I really like this, nice work! Will probably use it in my next project. Thanks!


Tnx for reply...
I will loved to see you work... :)

And Sorry if dll is complicated... but you have huge help in bass manual :)
  • 0

#22 Atomhead

Atomhead

    GMC Member

  • GMC Member
  • 37 posts

Posted 04 November 2011 - 06:55 PM

I'm having a problem with 'GM_BASS_ChannelBytes2Seconds'.
GM_BASS_ChannelSeconds2Bytes works without a problem, but the other one hangs the stream whenever i try it.

Am I using it wrong or is there something wrong with the function? here's what i do: secs=GM_BASS_ChannelBytes2Seconds(b,kanal_pozicija);
  • 0

#23 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 04 November 2011 - 08:13 PM

I'm having a problem with 'GM_BASS_ChannelBytes2Seconds'.
GM_BASS_ChannelSeconds2Bytes works without a problem, but the other one hangs the stream whenever i try it.

Am I using it wrong or is there something wrong with the function? here's what i do: secs=GM_BASS_ChannelBytes2Seconds(b,kanal_pozicija);


Sorry man... kanal_pozicija is on My language,,, In English that is channel_position... That is current position of playing song. :)
And that variable you can get with function kanal_pozicija=GM_BASS_ChannelGetPosition(b,0); (or channel_position=GM_BASS_ChannelGetPosition(b,0); if you prefer English or call this
how you want, on your language no matter. :)
here is:
b= channel who playing ( See EVENT press 'L' key) --> b=GM_BASS_StreamCreateFile(0,your_song_to_play,0,8);
0=The position to translate (write here 0(zero)).

So, in Example I was put NEXT
kanal_pozicija=0; ---> Create event
kanal_pozicija=GM_BASS_ChannelGetPosition(b,0);---> Event press 'L' Key( Load and start play) and in Alarn[0]
And
secs=GM_BASS_ChannelBytes2Seconds(b,kanal_pozicija); --> put where you wont to see current position in second's ...
To translate this in minutes or similar... try to use Shaltif sript, or some similar...

I hope this will help...
Regards, and keep working...
zmmaj :)
  • 0

#24 Atomhead

Atomhead

    GMC Member

  • GMC Member
  • 37 posts

Posted 04 November 2011 - 08:35 PM

So, in Example I was put NEXT
kanal_pozicija=0; ---> Create event
kanal_pozicija=GM_BASS_ChannelGetPosition(b,0);---> Event press 'L' Key( Load and start play) and in Alarn[0]
And
secs=GM_BASS_ChannelBytes2Seconds(b,kanal_pozicija); --> put where you wont to see current position in second's ...
To translate this in minutes or similar... try to use Shaltif sript, or some similar...

I hope this will help...
Regards, and keep working...
zmmaj :)


i put this in Draw Event of your example file:
secs=GM_BASS_ChannelBytes2Seconds(b,kanal_pozicija);
draw_text(20,250,string(secs));

i also initialised kanal_pozicija to 0;

It's still doing the same thing: retriggering the sound stream whenever Bytes2Seconds is called (both in Alarm or Draw event).
When i replace the same thing with Seconds2Bytes it works perfectly...

Hope you know a solution!
  • 0

#25 Atomhead

Atomhead

    GMC Member

  • GMC Member
  • 37 posts

Posted 04 November 2011 - 08:37 PM

Also, is it possible to measure in milliseconds?
  • 0

#26 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 04 November 2011 - 08:57 PM

Also, is it possible to measure in milliseconds?


Nope... I will see what I can do about miliseconds...
but I think you will got format 00,00 sec... :)

About function GM_BASS_ChannelBytes2Seconds I was found error...
Please do next:
Open SCRIPT GM_BASS_ChannelBytes2Seconds
and replace GM_BASS_ChannelPlay to GM_BASS_ChannelBytes2Seconds ...
I hope now will work :)
Write please if this work... to put BUG for all... This bug user can correct by own...
Sorry this is my bad,,, :(



  • 0

#27 Atomhead

Atomhead

    GMC Member

  • GMC Member
  • 37 posts

Posted 04 November 2011 - 09:03 PM

Ok it works!! :) Hehe i didn't see that one either...

but I think you will got format 00,00 sec... :)


Sadly i only get seconds in integers...
  • 0

#28 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 04 November 2011 - 09:07 PM

Ok it works!! :) Hehe i didn't see that one either...


but I think you will got format 00,00 sec... :)


Sadly i only get seconds in integers...


I just see... I can't to do nothing... That is original BASS command...
You can use PERCENT just I am in example... there you have format 0.00 for sure :)
  • 0

#29 Atomhead

Atomhead

    GMC Member

  • GMC Member
  • 37 posts

Posted 04 November 2011 - 09:11 PM

You can use PERCENT just I am in example... there you have format 0.00 for sure :)


I'm already doing that, but it can get inexact when trying to track long music files.

Thanks for your help anyway, I'll get back to you when i run into more problems ;)
  • 0

#30 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 04 November 2011 - 09:13 PM

You are welcome :)
  • 0

#31 Davve

Davve

    Procrastinator

  • GMC Member
  • 3668 posts
  • Version:GM8.1

Posted 07 November 2011 - 07:25 PM

Now you can do with sound all what you imagine, even to mix and save sound to *.wav file...

Since the first post and .zip is a giant mess, can you make a small example of this feature? Are you talking about recording the sound off the system, or saving sounds to a .wav without even playing them (that would be preferred)?
  • 0

#32 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 07 November 2011 - 07:40 PM


Now you can do with sound all what you imagine, even to mix and save sound to *.wav file...

Since the first post and .zip is a giant mess, can you make a small example of this feature? Are you talking about recording the sound off the system, or saving sounds to a .wav without even playing them (that would be preferred)?


Oh...
Bass provide simplest way to save any sound( from mice, or loaded sound) to *.wav.
If you wana just convert from each to another format, and that is possible too ( with or without playing song) .
Mess is just on first lock. Play with bass and you will see, that is not a mess...
Simply bass is HUGE audio and video engine, with almost unlimited possibilities...
Example , how to save from mp3 to wav, exists, there..
For that purpose there are two dll's ( vorbis, and ogg).
More, about how to use this possibilities, you have in provided help.
Also I recommend you to visit BASS forum...
Regards. :)
  • 0

#33 Davve

Davve

    Procrastinator

  • GMC Member
  • 3668 posts
  • Version:GM8.1

Posted 08 November 2011 - 05:30 PM

Oh...
Bass provide simplest way to save any sound( from mice, or loaded sound) to *.wav.
If you wana just convert from each to another format, and that is possible too ( with or without playing song) .
Mess is just on first lock. Play with bass and you will see, that is not a mess...
Simply bass is HUGE audio and video engine, with almost unlimited possibilities...
Example , how to save from mp3 to wav, exists, there..
For that purpose there are two dll's ( vorbis, and ogg).
More, about how to use this possibilities, you have in provided help.
Also I recommend you to visit BASS forum...
Regards. :)

Surely a small example of the .wav generating is not too much to ask for?
  • 0

#34 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 08 November 2011 - 08:05 PM

Hi..
There is two examples how to save as *,wav file...
1:
Is in bass.gmk
Example how to record sound from mic and save to wav file
( see Event under "R" key)

2: is example how to convert from mp3 to wav file. (example_"convertMp3ToWav.gmk "

So, I really don't understand your request :(



  • 0

#35 bnjzjbmu

bnjzjbmu

    GMC Member

  • New Member
  • 4 posts

Posted 14 November 2011 - 02:22 PM

Amazing, i really want something better than the old bassmod extension. The main problem i have with bassmod gex was it always loop all *.it files from start, it never loops from a custom loop point. (if i want a custom loop point i have to convert *.it to *.xm and it works, but with less quality and no instrument pitch envelope <.<)

Now talking about your examples all seems to work and will be really useful for others GM projects, but i really want to use this to play some mod music. I tried this code:
a=GM_BASS_MusicLoad(0,"test.it",0,0)
GM_BASS_ChannelPlay(a,1)
And works, but i cant find a function to make the song loop/repeat now

So i will be really happy if you add some mod music support if you can, i can help with testing :D
  • 0

#36 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 14 November 2011 - 06:24 PM

Amazing, i really want something better than the old bassmod extension. The main problem i have with bassmod gex was it always loop all *.it files from start, it never loops from a custom loop point. (if i want a custom loop point i have to convert *.it to *.xm and it works, but with less quality and no instrument pitch envelope <.<)

Now talking about your examples all seems to work and will be really useful for others GM projects, but i really want to use this to play some mod music. I tried this code:

a=GM_BASS_MusicLoad(0,"test.it",0,0)
GM_BASS_ChannelPlay(a,1)
And works, but i cant find a function to make the song loop/repeat now

So i will be really happy if you add some mod music support if you can, i can help with testing :D


yes .. You are right...
I was make very little about *.it files..
Why? answer is simple... I haven't any *.it file in my comp... :(
Give to me link with some *.it files, so I can test that files... :)
However all commands must apply and to IT files...just try it...
NOTICE...
STOP--> Delete from memory loaded file.. use pause and load for stop/play sequence...

Edited by zmaj, 14 November 2011 - 07:46 PM.

  • 0

#37 bnjzjbmu

bnjzjbmu

    GMC Member

  • New Member
  • 4 posts

Posted 17 November 2011 - 08:22 PM

Well i just made a really simple example using bassmod and playing a kirby song (just for this example, im not using it xD) http://www.mediafire...wq47mb99e9da3aj

You will notice IT version will loop from start and XM/MO3 will loop from correct pattern (MO3 its just a XM compressed)
I think its bass.dll fault anyways, so dont worry if you cant fix it :D

Edited by bnjzjbmu, 17 November 2011 - 08:25 PM.

  • 0

#38 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 17 November 2011 - 08:54 PM

delete this post pls...

Edited by zmaj, 17 November 2011 - 08:59 PM.

  • 0

#39 zmaj

zmaj

    GMC Member

  • GMC Member
  • 323 posts

Posted 17 November 2011 - 08:58 PM

HI...
Truth is next...
I am NOT wrapped all functions from originall bass... :)
I will see what was I missed :)
Don't worry... Will bee soon fixed... :)
Or just visit bass.dll forum, and see if they have solution for your problem...
I will be glad to implement them in gm_bass.dll

I haven't much time for bass right now, I am a working on IndieLib port, so please bee patient.

And pls give me some link to download IT files...

And your example will not work without all dll files :)

Regards :)

Edited by zmaj, 17 November 2011 - 09:02 PM.

  • 0

#40 bnjzjbmu

bnjzjbmu

    GMC Member

  • New Member
  • 4 posts

Posted 17 November 2011 - 09:10 PM

HI...
Truth is next...
I am NOT wrapped all functions from originall bass... :)
I will see what was I missed :)
Don't worry... Will bee soon fixed... :)
Or just visit bass.dll forum, and see if they have solution for your problem...
I will be glad to implement them in gm_bass.dll

I haven't much time for bass right now, I am a working on IndieLib port, so please bee patient.

And pls give me some link to download IT files...

And your example will not work without all dll files :)

Regards :)

The example include one IT and i used bassmod extension, if you need more music and/or a gmk/exe using the dll (not gex) just tell me

* The example didnt work?? D:
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users