Welcome to %s forums

BrainModular Users Forum

Login Register

Getting sounds from a webradio

I need help on a Patch
Post Reply
noise2sine
Member
Posts: 458
Contact:

Unread post by noise2sine » 10 Dec 2012, 15:52

Hello,

Would it be possible with Usine to get sound from a webradio ? how ? how is it possible to set a starting and ending time for the broadcasting ?

Cheers

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 10 Dec 2012, 16:16

here a first idea, using the time and shell module
Image

now, about the sound, i suppose you can route the basic output of your computer to your sound-card input used with Usine..?

noise2sine
Member
Posts: 458
Contact:

Unread post by noise2sine » 10 Dec 2012, 16:30

thanks for that first idea, can the time module be set according a week ? i mean different time set for the week end ?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 10 Dec 2012, 16:48

Actually , can't see a solution, maybe a script guru can access to the windows clock..?

hesspet
Member
Posts: 92
Location: Germany
Contact:

Unread post by hesspet » 10 Dec 2012, 21:06

Hi!

Why not accessing the windows sheduler via the commandline?

The way I would schedule a recording

1.) It is possible to excecute a shell command with Usine Scripting: see procedure winExec(cmd : string);
2.) I would schedule a excution event to start usine at the desired time. Schtasks.exe :http://msdn.microsoft.com/en-us/library ... 85%29.aspx
3.) Write a recording patch, which is started by the scheduler and after the recording leave Usine.
Finished :-)

But the main question is, how to get webradio sound into Usine?

I've done this some years before using a cable from the output of the soundcard and route it to the input of the soundcard and record the incomming sound. Usine can't record a webradio stream direct (as I know).
It would be possible to build an interface between e.g. VLC as webradio player, a virtual soundcard and usine.

Let me write it in a better way:

=== Preparation ===
Start Usine
Start a patch which creates a schedule (Usine Scripting)
End Usine.

=== At recording time ===
Scheduler starts Virtual Soundcard (Or it is permanent installed and comes up when windows starts up)
Scheduler starts a webradio software with output to virtual soundcard (This may also be done in the patch - as you like)
Scheduler starts Usine with an autostart patch
Patch starts recording and measures the recording time, stop and exit when recording is finished.

The good thing: Windows schedules can wakeup a switched of computer (If the BIOS supports that)
The bad thing: This configuration has so much pitfalls and the most working soultions for virtual soundcards are commercial. There is a free solution http://jackaudio.org/jack_on_windows but I never had the time to check it out. Jackaudio can accessed via Asio..

Sounds like a hell of problems..... :-)
Maybe someone has a better idea than mine, to solve the recording part.

Peter
+++ journeytounknownsoundscapes.blogspot.de +++
+++ DIY electronics +++ musical experiments +++ light experiments +++

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 10 Dec 2012, 22:23

Some soundcards have virtual/loopback possibilities. Have you checked yours? I've used the loopback on my Saffire once in a while to capture various sources and record in Usine or an audio editor. Never tried to automate the process, though.

BTW, I used Jack for Windows for a while some years ago. It was a mess to set up, but I believe it has improved in the mean time.

...and no matter how you get the sound into Usine, make sure to turn the volume down when setting things up - it's very easy to get a nasty feedback loop going...
Bjørn S

noise2sine
Member
Posts: 458
Contact:

Unread post by noise2sine » 13 Dec 2012, 09:14

Thanks a lot for your advice, i will try what you have proposed. Anyway i think it would be great to have a Usine module able to deal the calendar(year/month/day/ hour/minute/seconds/

.It can be great for programing scenarios for long time installation ...

thanks again

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 14 Dec 2012, 21:34

++1 for a calendar module
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests