Git Product home page Git Product logo

Comments (6)

dbkynd avatar dbkynd commented on June 28, 2024

The expected behavior you list is correct except for type Normal.
When you spam the button with type Normal selected it will only play on the first press. Subsequent key presses won't do anything until the current track stops. (per key)

Testing locally it all seems to function properly. Can you open the Chrome Dev Tools CTRL+SHIFT+I and see if there is any error in the console when playing audio?

from controlcast.

Const4ntFlux avatar Const4ntFlux commented on June 28, 2024

This is in the log (see below for important note):
start options.js:192
Uncaught TypeError: Cannot read property 'played' of undefined launchpad.js:133

Toggle works the first time it is called after setting up the button after that it doesn't work anymore.
That is:

  • click on empty pad
  • open Edit Key/Audio
  • browse for audio file and choose (in my case a .wav file)
  • click on Type: Toggle
  • press according button on Launchpad->audio plays
  • press button again during first audio playback->audio stops
  • press button again to start playback->audio plays
  • press button again during audio playback->audio continues and an additional audio file (same audio contents) is started

from controlcast.

Const4ntFlux avatar Const4ntFlux commented on June 28, 2024

Is there a specific format of audio file names I must adhere to?
As in: no spaces or umlauts, I mean.

from controlcast.

dbkynd avatar dbkynd commented on June 28, 2024

It should work for any local or remote .mp3 .wav or .ogg file. It just saves the file path string to a JSON object for reference.

If the app was unable to access the file, it would have shown an warning message explaining that. If you did not get the warning message, the app can access the file correctly, spaces and umlauts included.

Do you mind sharing the .wav file you are using and I can try it?

from controlcast.

dbkynd avatar dbkynd commented on June 28, 2024

I just pushed an update for ControlCast (0.2.4). This should handle the error you were getting in the console. But unsure if it will resolve your entire audio issue.

from controlcast.

Const4ntFlux avatar Const4ntFlux commented on June 28, 2024

Thanks for the update. I ran the update in app (opposed to running the setup.exe again), got confused because there is no status bar for the download, restarted the download and succeeded updating in the end.
Didn't change anything concerning my issue though.

BUT I found out it is indeed a file path/umlaut combination issue.
Audio file X in a directory with an umlaut in the directory path shows the issue for me from the original post.
The same audio file in a directory without the umlaut in its file path works as intended.
(the kill all audio switch issue from #6 is solved for audio files located in directories without umlauts in their directory path with this too).

My temporary fix obviously is to lose the umlaut in the directory name or move the audio files to a different location, but a permanent and sound solution would be to make Controlcast more compatible with different language conventions, which will probably solve #9 too.

Thanks for your help!

from controlcast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.