Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1] 2   Go Down

Author Topic: A new feature idea  (Read 9337 times)

0 Members and 1 Guest are viewing this topic.

carloratm

  • Wants more Pie
  • Offline Offline
  • Posts: 5
    • View Profile
    • carloratm's desktop
A new feature idea
« on: May 18, 2010, 19:11:51 »

Hi,
i'm carloratm, the author of a very little patch to autoconnect Milky
to Jack Audio Server forst outputs.

I'd like to try develop a minor feature, but i need some help.

Feature is, in 2 words: multichannel output for Jack Audio Server in
Linux (and Mac)
It's a minor feature, affecting a few people, and could looks
scandalous for someone,
but i really think that would be useful!

So, every MilkyTracker channel will have a separate stereo output in Jack.

Could you please tell me where to start, in the code, to discover the
audio channels system?

Thank you
Cheers
Logged
--
C programmers never die, they just cast into void

Deltafire

  • Milkytracker Moderator
  • Pie Rehab
  • *
  • Offline Offline
  • Posts: 195
    • View Profile
Re: A new feature idea
« Reply #1 on: May 18, 2010, 20:09:03 »

I could be wrong, but I think the actual mixing takes place inside the Resampler* files located in the Milkyplay directory.

Warning: do not look inside ResamplerMacros.h, you won't like what you see!
Logged

joule

  • Devouring the Pies
  • Offline Offline
  • Posts: 19
    • View Profile
Re: A new feature idea
« Reply #2 on: May 19, 2010, 14:32:04 »

Feature is, in 2 words: multichannel output for Jack Audio Server in
Linux (and Mac)

 I'm not a coder but I fully endorse this :) This would make it possible to route the audio to any DAW for mixing (not to mention the use of delays, which i would find valuable). As far as I know rewire is only being licenced to commercial products.

 I use virtual audio cable under windows at the moment, routing only the master audio to renoise for some extra mastering and visualization.

 Some would probably think that it's better to change software alltogether, but except for being used to its tracking interface, Milkytrackers vibsweep and sample drawing is invaluable to me and I can't find these features anywhere else.
Logged

carloratm

  • Wants more Pie
  • Offline Offline
  • Posts: 5
    • View Profile
    • carloratm's desktop
Re: A new feature idea
« Reply #3 on: May 19, 2010, 17:54:52 »

And where is the part of adding/removing Tracks ?  ;)
Logged
--
C programmers never die, they just cast into void

pailes

  • Milkytracker Moderator
  • Pie Rehab
  • *
  • Offline Offline
  • Posts: 287
    • View Profile
Re: A new feature idea
« Reply #4 on: May 19, 2010, 19:08:29 »

Mixing audio is just summing up the tracks in the same buffer. If you want to add this feature you will have to modify ChannelMixer.* and rework parts of the audio driver implementation because mixing always takes place in the same buffer and I assume for multichannel support you need to mix into seperate buffers for each channel you have.
Logged

carloratm

  • Wants more Pie
  • Offline Offline
  • Posts: 5
    • View Profile
    • carloratm's desktop
Re: A new feature idea
« Reply #5 on: May 19, 2010, 19:41:25 »

Mixing audio is just summing up the tracks in the same buffer. If you want to add this feature you will have to modify ChannelMixer.* and rework parts of the audio driver implementation because mixing always takes place in the same buffer and I assume for multichannel support you need to mix into seperate buffers for each channel you have.
Exactly. It's a bit harder than i thought.

Logged
--
C programmers never die, they just cast into void

pailes

  • Milkytracker Moderator
  • Pie Rehab
  • *
  • Offline Offline
  • Posts: 287
    • View Profile
Re: A new feature idea
« Reply #6 on: May 19, 2010, 19:50:44 »

I was expecting this ;)
Logged

carloratm

  • Wants more Pie
  • Offline Offline
  • Posts: 5
    • View Profile
    • carloratm's desktop
Re: A new feature idea
« Reply #7 on: May 19, 2010, 20:43:09 »

is there somewhere a scheme diagram on how work audio routing in milky?
Maybe it could help me a bit
Logged
--
C programmers never die, they just cast into void

pailes

  • Milkytracker Moderator
  • Pie Rehab
  • *
  • Offline Offline
  • Posts: 287
    • View Profile
Re: A new feature idea
« Reply #8 on: May 19, 2010, 22:13:29 »

Real programmers don't need diagrams ;)

Just kidding, but honestly, there is none... It's fairly easy to understand actually.
Logged

carloratm

  • Wants more Pie
  • Offline Offline
  • Posts: 5
    • View Profile
    • carloratm's desktop
Re: A new feature idea
« Reply #9 on: May 20, 2010, 00:23:25 »

Real programmers don't need diagrams ;)
I am NOT a real programmer, absolutely :)
Logged
--
C programmers never die, they just cast into void
Pages: [1] 2   Go Up