AudioPlayground - Create sound using only native PB code

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

AudioPlayground - Create sound using only native PB code

Post by BasicallyPure »

Download here: AudioPlayground_2.00.zip
Download includes source code and all support files.
Works on Windows, Linux, and Mac OS.

Image
Last edited by BasicallyPure on Sun Feb 24, 2013 7:45 pm, edited 7 times in total.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: AudioPlayground - Create sound using only native PB code

Post by BasicallyPure »

Edit:
Old code deleted.
Download latest version from the link above.

BP.
Last edited by BasicallyPure on Sun Feb 24, 2013 7:27 pm, edited 4 times in total.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: AudioPlayground - Create sound using only native PB code

Post by skywalk »

The Balls 8)
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: AudioPlayground - Create sound using only native PB code

Post by IdeasVacuum »

Fabulous app! Bit too smart for my tiny brain but I'm sure my daughter will love it.

Minor change to showHelp():

Code: Select all

   Protected sAppFullPath.s = ProgramFilename()
   Protected sPath.s = GetPathPart(sAppFullPath)

   Verify(OpenWindow(#HelpWin, 0, 0, width, height, "APG Help", flags),"Help Window")

   helpGad = WebGadget(#PB_Any, 0, 0, width, height, "file://" + sPath + "APG_Help.html")
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Re: AudioPlayground - Create sound using only native PB code

Post by yrreti »

It's a cute app BasicallyPure
I like how you can actually play chords with it.
Thanks for sharing your code
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: AudioPlayground - Create sound using only native PB code

Post by BasicallyPure »

@ IdeasVacuum

Thank you for the code change suggestion.
I have edited my original post above.
Now it works correctly when launched with a shortcut using Linux.
Strange that shortcuts worked with windows.
I knew there was a little problem there but didn't know how to fix it.

B.P.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
User avatar
idle
Always Here
Always Here
Posts: 5839
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: AudioPlayground - Create sound using only native PB code

Post by idle »

I agree with skywalk there!
or as the Irish would say "It's the dogs bollocks"
Thanks for sharing it.
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: AudioPlayground - Create sound using only native PB code

Post by Rings »

great stuff, thx for sharing !
SPAMINATOR NR.1
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: AudioPlayground - Create sound using only native PB code

Post by electrochrisso »

What can I say Basically Brilliant, thank you sir. :D
PureBasic! Purely the best 8)
doctornash
Enthusiast
Enthusiast
Posts: 130
Joined: Thu Oct 20, 2011 7:22 am

Re: AudioPlayground - Create sound using only native PB code

Post by doctornash »

A sound synth from scratch! Magnificent effort - thanks for the share Basically Pure :D
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: AudioPlayground - Create sound using only native PB code

Post by BasicallyPure »

doctornash wrote:A sound synth from scratch! Magnificent effort - thanks for the share Basically Pure :D
You're welcome!
Thanks to everyone else as well for you're kind comments.

B.P.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: AudioPlayground - Create sound using only native PB code

Post by BasicallyPure »

Version 2.00 is now available.

Follow the link in the first post above.
download includes source code and all support files.

BP.
Last edited by BasicallyPure on Sun Feb 24, 2013 7:31 pm, edited 2 times in total.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: AudioPlayground - Create sound using only native PB code

Post by J. Baker »

Very nice! Works on OS X too! ;)
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Re: AudioPlayground - Create sound using only native PB code

Post by kenmo »

:shock: This is very cool. Last year I was working on my own text-to-audio PB program, but yours already does way more than mine was going to. Mine didn't have the visualizer either.

Nice work! I will spend some time learning your "syntax" and come up with some cool sounds.
User avatar
BasicallyPure
Enthusiast
Enthusiast
Posts: 539
Joined: Thu Mar 24, 2011 12:40 am
Location: Iowa, USA

Re: AudioPlayground - Create sound using only native PB code

Post by BasicallyPure »

Thanks kenmo,
I look forward to seeing what you come up with.
The recipes make it easy to share sounds.

This project evolved quite a bit from my original idea.
I wanted something I could use to do music experiments with by adding together notes that were at frequencies other than those of standard tuning.
Along the way I kept thinking of other features I could add.

One way to learn the syntax is to click on the capture button and then look at what appears in the recipe window as you change the other controls.
The recipe for any sound is the same as if you were to manually change each control to produce the sound you want.
Because there is no 'undo' button the recipe feature is very useful to edit and fine tune your sound.
In other words you don't have to start over every time you make a change.

BTW, I noticed that I forgot to include the 'Mirror' command in the help document in the list of valid recipe commands.

B.P.
BasicallyPure
Until you know everything you know nothing, all you have is what you believe.
Post Reply