[Art|ocs|oekaki] [A!MG] [Cats] [Cityscapes] [Comics] [FF] [Gainax] [Ghibli] [Haruhi] [Miko] [Music] [Nevada] [News] [Tabletop]
[iiichan] - [iichan|discuss|error] [4chan] [Overchan] [2chan]
[Burichan] [Futaba] [Gurochan] [Photon] - [Home] [Manage]

[Return]
Posting mode: Reply
Leave these fields empty (spam trap):
Name
Link
Subject
Comment
File
Password (for post and file deletion)
  • Supported file types and how to play them.
  • Maximum file size allowed is 51200 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • For the posting of demoscene, tracked, and otherwise original music.
    Please describe all files when uploading, to avoid confusion.
  • ARTISTS: looking for hosting of your creations that's more lasting than the board?
    Drop me a line! I'd be happy to give you hosting.
  • We've got our own theme music, collaborated on by the regulars and some guys who just wandered by.
  • /r/ midi of acid jazzed evening

File: Tito - God save the scene.xm -(57703 B, 0x0) Thumbnail displayed, click image for full size.
57703 No.7092  

RADIO NEWS

Hay guys. My moving the radio server to Linux did not go as smoothly as I had planned. Unexpected lack of wired connectivity (Ubuntu wouldn't recognize the wireless card or even admit it was in the PCI slot) had forced me to move faster to get the machine up and running as the main network server. The DHCP daemon was a bitch to set up. Samba was a bitch to set up.

But, this time, I didn't give up after a day or two of trouble (mostly because this time I could ask the internet for help WHILE troubleshooting it). The next problem I had was that the station's replayer depended on a combination of Oddcast v3 standalone and a custom replayer I created in VB.NET based on the BASS sound library. This was definitely not portable from Windows, so I installed Virtualbox and hoped I could run the software from there.

UNFORTUNATELY, I just found out now that it appears that the input source Stereo Mix from virtualbox always outputs null no matter what you do, which means that my plans to migrate the server to the linux machine are pretty much hosed entirely now. I will be resuming playback from the old Windoze box soon.

Now then. I might have a bigger request from you guys. Currently, the replayer for the radio station engine is Open Source, but there isn't much interest to most people for it since it's completely coded to be functional for my specific purpose at the expense of portability. The config needs lots of work to make the code portable to say, Java, not the least of which some sort of mod replayer that works across systems (Mandrixx are you out there?), some way to output directly to a stream to iichan's shoutcast server (I have no idea how to do this.... orz), and finally, a way to redirect the output of my TTS to a stream rather than audio output (the TTS has a linux version which I'm assuming is a binary blob since it's commercial software....)

If I'm gonna get this thing up and running in a nice way, these are the hurdles I'll have to overcome in order to port the radio station over to Linux. I'm learning Java right now, and I can probably port the GUI and randomizer/regenerator pretty quickly, but those other parts, the meat and potatoes of audio output, are gonna be a problem :x

In the meantime, I'll be trying to get the station back up again soon (and more stable, once I migrate all the MP3 files to the linux server so that there is no dependency streaming audio over wireless in the home LAN). Thanks for sticking around and please continue to enjoy the station!

>> No.7093  

for those of you who would like to take a peek at the ugly, god-awful source code with the interest of helping me port it (and overcome the limitations of portability), here it is:

http://nobuyuki.gpknow.com/lab/nbBassPlay.rar

You will need BASS.NET to compile. Get it at www.un4seen.com
If you want TTS, you will also either need a Cepstral voice (www.cepstral.com), or enable the ancient code for STSPEECH, or you know, hack out the code calling the cepstral process and use Microsoft Sam instead.

The autoRegen function is enabled by default, it probably doesn't have proper error catching yet, I don't remember. Check the config file. The regenerator depends on NPG files, which is a format I created to scour directories for playable files automatically -- so the mersenne twister can shuffle the entire playlist on regen. If you don't want to make NPG files by hand, get this:

http://nobuyuki.gpknow.com/lab/nbPlaylistGen.zip

This will let you generate the autoRegen playlists, or export M3U's (I added that option, and the ad injector in before nbBassPlay was created, back when I was using foobar2000 to power the station. nbBassPlay injects jingles automatically).

>> No.7094  
>virtualbox doesn't work right

before giving up on emulation, try some other platforms. 2 people i asked virtualbox about both said that they tried it and whatever they wanted to do crashed. other options: vmware, kqemu, qemu (you already said wine wouldn't work with .net framework)

>porting to linux

the most disappointing part about this will be that you'll end up with a mod engine that's not as good as BASS. the only replayer that i know of that's possibly more accurate than BASS is foo_dumb, which is closed source, and impulse tracker itself, which isn't very useful. libmodplug might come close, but there's still some well-known playback issues with modplug...

>Stereo Mix

using stereo mix is a pretty uncommon way to do it, especially since you're not mixing multiple soundcard inputs (like, doing voiceovers with the microphone). Normally, you would mp3-encode the output of BASS or TTS on the fly and send it to the icecast server. i'm sure cepstral command line has an option to output to a file, and i'm sure there's some way to get the raw audio data out of BASS (either using the ChannelDSP callback or with BASSmix). then you'd get around the stereo mix problem by making your program stream directly to the server without even needing to use the sound card.

or, the easiest option as i see it, you could just throw some spare parts together, put win2k on it, and run your program as-is! :)

>> No.7095  

>>7094

streaming direct output would require a consistent bitrate, most likely requiring me to re-impliment portions of lame_enc to re-encode it to mp3 since the input formats are varied (mods and such). Speaking of mods, libmodplug is a decent replayer engine -- Most of the mods I play don't use resonance filters, and the ones that do I usually made in MPT myself (so they sound as intended). I'm not sure if it would work though, depends on whether bindings exist, etc etc

Cepstral can output a WAV file, but then I get to use BASSmix to mix the bgm with the TTS output (oh boy) before sending the stream to lame_enc and finally to icecast. This is definitely a lot of unfamiliar territory for me here

>> No.7099  

>>7094

> the most disappointing part about this will be that you'll end up with a mod engine that's not as good as BASS.

BASS works just fine on linux... or not?

>> No.7102  

Scrap that, must've been thinking of BASSMOD...

>> No.7109  

>>7094

>the only replayer that i know of that's possibly more accurate than BASS is foo_dumb, which is closed source

Close, but no cigar.
Source:
http://kode54.foobar2000.org/foo_dumb_source.zip
And the project it's based on:
http://dumb.sourceforge.net/

>> No.7111  

>>7109
holy crap i couldn't find the source anywhere, awesome
...but it looks like the actual modifications to DUMB are missing, so that code is only useful for the additional format loading code that could possibly be scraped out of it.

>>7102
oh. i just realized BASSMOD plays formats besides plain old .MOD (durrr), which is all it needs to do (there's other perfectly good libraries for mp3/ogg/whatever playback!)

so, BASSMOD will work fine!

>> No.7112  

>>7111
Oops.
Forgot to link http://kode54.foobar2000.org/foo_dumb-dumb-lib_source.tar.bz2 too. Although I'm uncertain if the modifications he made to DUMB are included. It's just a wee bit pointless to release the component source if they aren't, though.

>> No.7113  

>>7111
And as there is mono to run VB.net (or any .net apps, really) in linux, porting should not be too much of a task for someone who knows .net, or not?

>> No.7114  

>>7113

Mono doesn't support Windows Forms 2.0 (the GUI toolkit I used), nor would it support bass.dll. It might support BASSMOD with a rewrite of the replayer. For the most part it would probably be best to have it ported to a more system-neutral language. (I was thinking that Java would be the one with the most similar datatypes, but coda has a boner for python so if he wants to do it that way, I'll support him -- I'm supposed to be learning py anyway)



Delete Post []
Password