Open your audio file in Audacity, and first, set the sample rate to 8180. (there is no option for 8180 but you can write it there manually)
Next, make the audio track mono via Tracks->Stereo Track to Mono.
Finally, select File->Export Audio.
On the save dialog, set the save format to be Other uncompressed formats and then select Options.
Set the settings to be WAV (Microsoft) and Unsigned 8-Bit PCM.
Now save the new file as anything.
Exporting audio to SmileBASIC format
Open the WAV2SBWAV tool. Select Load WAV and then select the file made earlier. (if the WAV file's length is over 30s, tick Ignore sample count)
After it's done writing the data, select Save SBWAV and save it anywhere you want to.
To see how to import the file to SB, see this. Make sure the filename starts with B and is UPPERCASE
Known bugs(?) of the tool:
The tool apparently overwrites the footer a bit, but that really shouldn't be a problem.
The date is totally wrong. I might change it to use the current time & date.
Ticking "Ignore sample count" makes it also ignore the sample rate. I haven't tested yet what happens when you play a file like that, but I don't think it'll make the wavplayer library explode/freak out/fly to space.
35 Comment(s)the_squat1115Second YearMy account is over 2 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsiteForum ContributorHiddenAchievementsIs there one there I don't need a PC?answerGreat PageHiddenAchievementsThird YearMy account is over 3 years oldWebsiteDeep SleepHiddenWebsitehow would you even transfer the files at that point?h267Third YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsiteMinecraft Is Awesome!I love Minecraft!Express YourselfWouldn't it also be better to not pack a single byte into a 4-byte integer? Instead, you could make it store 4 different bytes in one integer, cutting the size four fold. Reading 4 bytes from a 32 bit integer shouldn't be difficult if you write a small code snippet to put on the page. I should be able to pack in 8 minutes of audio instead of 2.12Me21Syntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express Yourselfbecause then you need to decompress it which is annoyingh267Third YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsiteMinecraft Is Awesome!I love Minecraft!Express YourselfBut is that really worth a 4x file size inflation? Maybe there could at least be a toggle for compression.h267Third YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsiteMinecraft Is Awesome!I love Minecraft!Express YourselfThough I guess I forgot about compressing it through SB itself. Still, the option would be helpful.h267Third YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsiteMinecraft Is Awesome!I love Minecraft!Express YourselfCan you make a 32 bit version of wav2sbwav?PerskaSummer 2016 Contest WinnerI won the SmileBASICSource Summer 2016 Contest!Programming ContestExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievementsit ish267Third YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsiteMinecraft Is Awesome!I love Minecraft!Express YourselfWell I'm having trouble running it then :/ PerskaSummer 2016 Contest WinnerI won the SmileBASICSource Summer 2016 Contest!Programming ContestExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievementsWhat does the program throw at you when you run the executable?h267Third YearMy account is over 3 years oldWebsiteAvatar TabooI didn't change my avatar for 180 daysWebsiteMinecraft Is Awesome!I love Minecraft!Express Yourself*path* is not a valid Win32 application.MidnocloseZelda Is Awesome!I love The Legend Of Zelda!Express YourselfNight PersonI like the quiet night and sleep late.Express YourselfSecond YearMy account is over 2 years oldWebsiteIt won't let me change the rate to 818012Me21Syntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express YourselfYou have to type the 1 on the number pad for some reason.MidnocloseZelda Is Awesome!I love The Legend Of Zelda!Express YourselfNight PersonI like the quiet night and sleep late.Express YourselfSecond YearMy account is over 2 years oldWebsiteSucs I don't have a number pad on my keyboard
12Me21Syntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express YourselfI think you can copy/paste "8180" into the input boxMidnocloseZelda Is Awesome!I love The Legend Of Zelda!Express YourselfNight PersonI like the quiet night and sleep late.Express YourselfSecond YearMy account is over 2 years oldWebsiteTried that too. :CMidnocloseZelda Is Awesome!I love The Legend Of Zelda!Express YourselfNight PersonI like the quiet night and sleep late.Express YourselfSecond YearMy account is over 2 years oldWebsiteIn the preferences make 8180 the defaultMidnightDeep SleepHiddenWebsiteThe song became.. very disturbing in my opinion..
Awesome!
It made me remember how slowing songs down gives them new meaning~?
Why.. does Audacity keep saving it as an AIFF..
UNDERTALE does it a few times which I think is cool, too.SamAmazing PageHiddenAchievementsGreat PageHiddenAchievementsGood PageHiddenAchievementsIs the SBWAV file what I'm supposed to send through Petit Modem?
Please enlighten me or something, I'd like to send WAV files with Petit Modem.PerskaSummer 2016 Contest WinnerI won the SmileBASICSource Summer 2016 Contest!Programming ContestExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievementsThe program generates a file to be sent with homebrew, as I have no idea what the format that Petit Modem uses is.
If I figure out the format, I could simply make it compatitle with Petit Modem.12Me21Syntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express Yourselfconvert to text file perhaps?
That's what I did to send image files.Super_DefaultioVideo GamesI like to play video games!HobbiesDay PersonI like the warm sunshine and wake up early!Express YourselfZelda Is Awesome!I love The Legend Of Zelda!Express YourselfPetit modem can convert the following as of this moment :
BMP/PNG/GIF/JPG into a .PZG file,
TXT into .PZT file, and
DAT into .PDA
It cannot convert any other file, but you can send it raw without conversion... just convert into a wav file for petit modem simplex receiver to use...12Me21Syntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express YourselfPlease add tags such as "WAV2SBWAV" , so we can find it more easily.PerskaSummer 2016 Contest WinnerI won the SmileBASICSource Summer 2016 Contest!Programming ContestExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievements"wav2sbwav" is already there. What kind of other tags there should be?12Me21Syntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express YourselfWAV
SBWAV12Me21Syntax HighlighterReceived for creating the code syntax highlighter on SBSNight PersonI like the quiet night and sleep late.Express Yourselfthank you
JKNXD3QVmystman12First DayJoined on the very first day of SmileBASIC SourceWebsiteIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthDeep SleepHiddenWebsiteHold on, I didn't realize this required homebrew... Would it be possible to use P/SEND (http://myu314.org/studyroom/product/pisend2/) to transfer the output file into SmileBASIC?PerskaSummer 2016 Contest WinnerI won the SmileBASICSource Summer 2016 Contest!Programming ContestExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievementsI don't know. Maybe you can use Petit Modem with this if you do some modifications to the code to save the output file to the format it uses?answerGreat PageHiddenAchievementsThird YearMy account is over 3 years oldWebsiteDeep SleepHiddenWebsiteGood job, exactly what I've been looking for!mystman12First DayJoined on the very first day of SmileBASIC SourceWebsiteIntermediate ProgrammerI can make programs, but I still have trouble here and there. Programming StrengthDeep SleepHiddenWebsiteNice! I've wanted a good way to transfer audio from my PC, this looks like it will work great!triangleFirst WeekJoined in the very first week of SmileBASIC SourceWebsiteQuery DeniedHiddenEaster EggsExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthWorks really well! Good job!PerskaSummer 2016 Contest WinnerI won the SmileBASICSource Summer 2016 Contest!Programming ContestExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievementsShould've mentioned this too: if the WAV file is over 30s, it won't play normally on the wavplayer. You can go around this by making it use integers instead of floats. While this does not remove the limit fully, it gives extra memory for more audio or your whatever variables. You can always split the waveform too.MattsharkHow exactly would I make it "use integers instead of floats"? I know what they both mean, I just don't know exactly what I'm changing...PerskaSummer 2016 Contest WinnerI won the SmileBASICSource Summer 2016 Contest!Programming ContestExpert ProgrammerProgramming no longer gives me any trouble. Come to me for help, if you like!Programming StrengthGreat PageHiddenAchievementsYou can add OPTION DEFINT to the wavplayer library which defaults every variable without a suffix to be treated as a integer.
You also should load the wav file in your program to a int array.DIM ARRAY%[0]
LOAD "DAT:MYWAV.WAV",ARRAY%,0
(or you could use the WAVSTART command, too!)MattsharkSo If all my audio is doing is static-ing for a second before jumping to a high pitch whine, then fading away, I didn't create the file right? :P
DIM ARRAY%[0] LOAD "DAT:MYWAV.WAV",ARRAY%,0
(or you could use the