Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

DJ - Play your music

Discussion in 'Assets and Asset Store' started by Stefan-Laubenberger, Nov 1, 2017.

  1. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    DJ

    If you ever wanted to listen to your own music within your game, you can do so now.
    DJ is, simply put, the missing link between Unity and your music-library.

    As the name promises, it’s a solution to build the music player of your dreams – just like a real DJ.
    It adds and plays audio files from anywhere inside your application, it’s very configurable and you can add as many records, sets and turntables as you wish.

    DJ is a must for everyone who loves music!


    Features:
    DJ and turntables

    • Support for those audio formats on any platform:
      • MP3
      • OGG
      • XM
      • IT
      • MOD
      • S3M
      • WAV
      • AIFF
    • Export audio from a turntable or the whole session
    • Read the lyrics of the current track!
    • Open Spotify with the current track!
    • Tune into multiple turntables at the same time (and blend between records)
    • Reads tags like ID3
    • Reads and saves M3U, PLS and XSPF files
    • Crossfade between turntables and records
    • Loop between start and end position
    • Cache tracks to play them with no delay (e.g. a piano)
    • Watchdog for file system changes
    • Performance: Very low impact on performance!
    • No limits: Does survive changing scenes! The music is not interrupted even during a load operation if necessary!

    Documentation & control
    • Test all audio tracks inside the editor!
    • Powerful API for maximum control!
    • Detailed demo scenes!
    • Comprehensive documentation and support!
    • Full C# source code in the PRO Version!

    Compatibility

    • Supports all build platforms (except Web & WSA)
    • Works with Windows, Mac and Linux editors!
    • Compatible with Unity 5.6 – Unity 2018
    • Supports AR and VR!
    • Works with Online Check
    • Works with File Browser


    Integrations:

    Some impressions:

    CT_Screenshot_18-01-2018-12-43-32-3.png

    CT_Screenshot_18-01-2018-12-44-02-8.png

    CT_Screenshot_18-01-2018-13-07-37-3.png

    CT_Screenshot_18-01-2018-12-47-37-1.png

    CT_Screenshot_18-01-2018-12-50-05-1.png


    Video:



    AssetStore:

    PRO edition

    Our other assets


    Demos:
    Windows
    Mac
    Linux
    Android


    Any constructive comments are very welcome!


    Cheers
    Stefan
     
    Last edited: Oct 8, 2018
    arteria likes this.
  2. EmeralLotus

    EmeralLotus

    Joined:
    Aug 10, 2012
    Posts:
    1,317
    Amazing work Stefan. Downloaded the demo on my mac and gave it a test drive.
    Looking really awesome. Great work.
     
    Stefan-Laubenberger likes this.
  3. EmeralLotus

    EmeralLotus

    Joined:
    Aug 10, 2012
    Posts:
    1,317
    Question about the "Cache tracks to play them with no delay (e.g. a piano)".
    Is it feasible to support a full size keyboard on a mobile app?
     
  4. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Hi

    Yes, you can do what ever you want. DJ can play infinite Turntables (records) at the same time :)
     
  5. EmeralLotus

    EmeralLotus

    Joined:
    Aug 10, 2012
    Posts:
    1,317
    Cool, I am envisioning one possible use case for a sampler/synth with sampled sounds. Performance and no delay is crucial. How would having a large number of cached tracks affect the memory and performance on mobile devices. Is there an efficient pooling system for storage/retrieval of sounds to and from the cache. Also how is the cached sounds stored on mobile devices.
     
  6. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Atm, it works like that:
    You enable "Cached" on the turntable and it will cache the current record. The size used in memory is equals the record.
    An example: if you have 20 turntables with samples of 1MB each, then it would use 20 MB of RAM.
    The record (sample) is cached after the first usage and is instantly available (= no delay).

    Currently, DJ doesn't save/load the cache itself, but I have planned a much more sophisticated caching system in the future.
    However, I think you could easily build such an app with the current version.
     
  7. blacksun666

    blacksun666

    Joined:
    Dec 17, 2015
    Posts:
    105
    Does this system have a way to report the bpm of a track/turntable?
    Can it support altering the bpm playback of a turntable without altering pitch?
    Does it support an auto sync option to match the playback speed of two different tunes via different turntables?
    Basically can it be used to create a typical modern day DJ application?
     
    StaggartCreations likes this.
  8. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    BPM detection is planned for an upcoming release.
    Auto-sync with BPM is also planned ;-)

    And yes, you should be able to create a DJ application with it.
     
    blacksun666 likes this.
  9. blacksun666

    blacksun666

    Joined:
    Dec 17, 2015
    Posts:
    105
    I've just had a quick look at the demo(windows), checking out the spotify integration. Not sure if it is a limitation of the demo, or the asset, but although it launched spotify, spotify tried to locate the 'demo song'. Is there a way to get the demo to load up a specific track or playlist from spotify? Once the bpm/auto sync feature is available will this work with tracks from spotify too?
     
  10. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    No, it's not possible to play tracks from Spotify inside DJ. They use DRM to protect their audio.

    But you can choose your own directory or add a playlist with music files.
     
  11. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Yeah, we finally released version 1.0.0 to the AssetStore!

    Time to party! :):cool::rolleyes:o_O


    We've also updated the demos and added an Android version:
    Windows
    Mac
    Linux
    Android


    So long,
    Stefan
     
  12. EmeralLotus

    EmeralLotus

    Joined:
    Aug 10, 2012
    Posts:
    1,317
    Awesome work Stefan. Party On.
    Cheers
     
    Stefan-Laubenberger likes this.
  13. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Yeah, DJ is finally in the store!

    Enjoy!


    Cheers
    Stefan
     
  14. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    We've just released version 1.2.0 of DJ.
    Main changes:
    • Interface "ISet" for sets added
    • Interface "IRecordProvider" for record providers added
    • Interface "IPlayer" for players added
    • Code improvements
    • Common 1.2.6 added
     
  15. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    The new version is in the store!
     
  16. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    We've created a tutorial video:



    Cheers
    Stefan
     
    Last edited: Apr 27, 2018
  17. Treacle-Games

    Treacle-Games

    Joined:
    Aug 24, 2015
    Posts:
    23
    Hi Stefan
    I purchased this kit yesterday andhave spent most of today playing around and getting to know it.
    First impression is it is probably one of, if not the best thing I have purchased from theapp store so far.
    Being a professional DJ I have a number of ideas and have made a test bed to try out at tomorrow night's Disco. So I'll let you know how it performs and I'm sure a few questions on how to add elements.

    Regards
    Mark
     
    Stefan-Laubenberger likes this.
  18. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Hi Mark

    Thank you very much for the flowers! ;)

    Please let me know about your real-life experience, I am eager to improve DJ based on your feedback!

    I hope it won't let you down!


    So long,
    Stefan
     
  19. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    We've just updated DJ to version 1.2.2.
    Main changes:
    • Loop-bug fixed for CT codecs
    • Editor integration improved
    • Official support for Unity 2018.1 & 2018.2
     
  20. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    The new version is in the store!
     
  21. ChillX

    ChillX

    Joined:
    Jun 16, 2016
    Posts:
    10
    Its freezing the editor for me.
    Example. Load demo "Play" scene
    Put in a folder.
    Hit Play.
    Stop Editor.
    Editor is now frozen
     
  22. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Hi

    How many audio files are in your folder?
    This happens normally if you add hundreds of files and use not the right settings.
    Please try it with this config:
    upload_2018-7-7_11-52-44.png

    "Load Tag" and "Read File Size" are very time consuming operations and "Auto Update In Editor" could be the reason for your freeze.

    On the other hand, you could leave those settings enabled and enable "Use Music Library". This way, it could freeze your Editor for the first scan, but creates a DB with the information for every file and is afterwards blazing fast. Disabling "Slow And Save" could also improve the speed and lead to more responsiveness.
    This first "scan" needs time if you have a lot of files - this is unfortunately how it works and can't be prevented.

    Please let me know if it helps you further.


    So long,
    Stefan
     
  23. ChillX

    ChillX

    Joined:
    Jun 16, 2016
    Posts:
    10
    Thanks for that. There is something in the demo scene (play.unity) that is causing the freeze.
    When I use the prefabs in my own scene everything is all sweet.

    Different question. How on earth does one adjust the master volume. I know I can access the audio source on the turntable and do it but really maybe a volume property on Simple Player might make a lot of sense ? or is it already there and I am just not seeing it.
     
  24. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Ok, this is a bit strange... No errors in the Editor?

    About the master volume: we thought it makes more sense to control it directly via the AudioSource, like pitch, spatial blend etc.
    We could expose those properties to the Turntable, but I think it would not help a lot and overload the already packed component. Convince me otherwise ;)
     
  25. CelsoMdeMelo

    CelsoMdeMelo

    Joined:
    Jul 16, 2016
    Posts:
    2
    Hi Stefan,

    This asset looks promising. The documentation says that it "supports AR", but did you try it with the Hololens?

    Thank you,
    Celso M. de Melo
     
  26. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Hi Celso

    Thank you for your interest in DJ!

    Unfortunately, DJ doesn't support WSA (UWP) and WebGL as build targets.
    We're currently evaluating how-to make our assets working there, but it's unclear, if and when we can provide support for those platforms...
    We will keep you informed in this thread.

    Cheers
    Stefan
     
  27. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Important notice for all "standard" customers:

    We constantly try to push our assets to the next level by adding new features and deliver the best support for our customers. In the past we've kept updating the asset in a 2-month cycle. However, after careful consideration, we feel like this needs to happen at a faster pace. We've received numerous input from the community that a faster pace would help out a lot. Because Unity is ever evolving and we want to keep our assets relevant we need to be able to keep up the fast pace that is Unity's second nature. Packaging and maintaining a separate DLL-version poses a problem in regards to this goal.

    With this in mind, we decided to phase out the DLL-version by the end of August 2018.
    Besides being able to update the asset more often, we are convinced that phasing out the DLL-version in favor of the PRO version will also bring these improvements for our customers:
    1. More functionalities and supported platforms due the source code (e.g. Linux)
    2. Less frictions with different Unity versions within the same company
    3. Fast hotfixes and high priority support

    We understand that this may impact you negatively. However we hope with the upgrade-path we offer to you - our loyal DLL-customers - can alleviate your concerns and win you over once more:
    PRO edition

    Please rest assured we will continue to support and improve the PRO version over the years to come.

    I hope you understand our decision.


    Cheers
    Stefan
     
  28. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    We've just released version 2018.2.0 of DJ. Main changes:
    • Common 2018.2.0 added
    • Discord channel added
    • Standard version removed
     
  29. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    The new version is in the store!
     
  30. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Update regarding the deprecation of the standard package:

    The standard package is planned to be available (but no longer maintained) until December 2018. This will allow the transition to PRO with a 50% reduced upgrade-price for our existing customers.
    Afterwards, the package will vanish from the store and the upgrade path will become inaccessible.
     
  31. maidengaming

    maidengaming

    Joined:
    Feb 15, 2016
    Posts:
    3
    Can you provide more details on what discord channel added means?
     
  32. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    It's just that we now provide a Discord channel for our users and implemented it inside the asset:
    upload_2018-8-27_17-48-3.png

    No big thing :)
     
  33. Treacle-Games

    Treacle-Games

    Joined:
    Aug 24, 2015
    Posts:
    23
    Hi Stefan
    how do I upgrade to the pro version and get the discount.

    regards
    Mark
     
  34. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Hi Mark

    Simply go to the PRO-version and choose "Upgrade".

    Thank you for your trust in us!


    Cheers
    Stefan
     
  35. Treacle-Games

    Treacle-Games

    Joined:
    Aug 24, 2015
    Posts:
    23
    Hi
    Thanks for your reply.
    I can't see anything that has an upgrade link on the pro version asset store page? can you point me in the right direction.

    regards
    Mark
     
  36. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    First, make sure you're logged in with the account you bought DJ in the AssetStore, Then go to the PRO-version and there should be a button called "Upgrade". The upgrade itself is $30.


    Cheers
    Stefan
     
  37. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    We've just released version 2018.3.0 of DJ. Main changes:
    • Save the playlists as XSPF
    • WWW replaced with UnityWebRequest
    • Demo scene improved
    • Minimum Unity version is now 5.6
    • UpdateCheck: runs in a separate thread
    • Common 2018.3.0 added
    • Tested with Unity 2018.3
     
  38. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    The new version is in the store!
     
  39. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    We've just released version 2018.3.1 of DJ. Main changes:
    • Support for WSA and WebGL added
    • IPlayer:
      • PlayAndStop added
      • PauseOrUnPause added
      • UnPause added
    • "OnLooppositionReached" added to Turntable, SimplePlayer and Looper
    • Demo for Looper added
    • BaseRecordProvider: Reset UID added
    • Updated to Common 2018.3.1
     
  40. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    The new version is in the store!
     
  41. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    We've just released version 2018.4.0 of DJ. Changes:
    • Turntable:
      • "Delay" added
      • "Cache"-method added
      • Caching works now for all platforms and formats
      • Callback "OnCached" added
      • DB-serialisation replaced with XML instead of binary data
    • RecordProviderClip added
    • WebGL: playback works
    • Code improvements
    • Updated to Common 2018.4.0
     
  42. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    The new version is in the store!
     
  43. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    All our assets are on the Cyber Sale and 30% off:

    https://goo.gl/qwtXyb



    This offer also applies for the upgrade paths - last chance to get a cheap upgrade to PRO!
     
  44. Stefan-Laubenberger

    Stefan-Laubenberger

    Joined:
    May 25, 2014
    Posts:
    1,150
    Dear non-PRO users

    The end of the "standard" version is near and the available reduced upgrade path will disappear.

    We added an additional 30% reduction for the upgrade path during the Cyberweek-sale and we decided to leave it that way until we remove DJ by the end of this month.
    This gives you a last opportunity to upgrade to PRO for only 35% (-65%) of the normal price.


    Regards
    Stefan