Giter Club home page Giter Club logo

moulinette-sounds's Introduction

Moulinette Forge Sounds (Foundry VTT)

GitHub tags (latest by date) License GitHub Download Tested on forge-vtt.com Support me on Patreon

This is a submodule for Moulinette Core. See Moulinette Core for an overview of all modules.

Bring your own sounds and manage them

You created or downloaded some sounds you'd like Moulinette to manage for you?

  • Put them in moulinette/sounds/custom folder.
  • Make sure to have at least a 2-depth structure (1. Publisher, 2. Pack, 3+ Sounds)
  • Index sounds
  • Moulinette lets you now search or browse sounds
  • Play a sound on-the-fly
  • Select sounds and create a playlist

Bring your own sounds
(Ambience sounds on the screenshot have been downloaded from Tabletop Audio which are licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.)

Create a soundboard

You can also create your own soundboard.

  • Sounds can be added by clicking on the "favorite" icon (Moulinette Forge | Audio)
  • Moulinette adds a new control on the top left corner for opening the soundboard
  • Simply click on the sound to play it
  • Sounds can be modified or moved on the soundboard

Create your soundboard
(Icons on the screenshot are from Game-icons.net and are provided under CC BY 3.0 license.)

To install the module from FoundryVTT:

  1. Start FVTT and browse to the Game Modules tab in the Configuration and Setup menu
  2. Search for "Moulinette Forge" and click install on the desired module

To manually install the module (not recommended), follow these instructions:

  1. Start FVTT and browse to the Game Modules tab in the Configuration and Setup menu
  2. Select the Install Module button and enter the following URL: https://raw.githubusercontent.com/svenwerlen/moulinette-sounds/master/module.json
  3. Click Install and wait for installation to complete

Install custom module

If you like my work and want to support me, consider becoming a patreon!

https://www.patreon.com/moulinette

You can also join Moulinette Discord

moulinette-sounds's People

Contributors

matt-duffy avatar svenwerlen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

moulinette-sounds's Issues

[Feature Request] Better support for saved soundboards

Just a small comment to support something I was so close to enjoying. When planning out a scene there are often a handful of sounds that you'll want to have on hand, ranging from BGM and combat music to one-off stings, etc. Moulinette is a fantastic tool for searching, and the soundboard allows for some measure of "construction" of a scene board, so you have all those buttons assembled just like a stream macro deck (awesome!). There is even the functionality to import/export boards, so that you can construct the sounds you want ahead of time and then load them in when the scene comes into play.

Unfortunately, I feel this feature is a step too inconvenient to use in its current form for this purpose as the saving/loading of the board file is with native IO (meaning the local computer), as opposed to using the Foundry file-picker. An even better outcome would be allowing the module to store this internally and present the user with a list of saved boards to easily toggle between, and offer the direct file export as is as a pure backup measure.

Again, great work. For now I'm content with pre-building playlists and combining them with a general SFX board, or using active tile triggers, but I feel this feature would elevate this module above other's for prep-happy DMs. Cheers!

Better short texts for Soundboard

I'm using the soundboard for some sessions now. I'm using different sound for similar events, like different animal noises. Using Icons is kinda difficult for this one. But using the short text on the soundboard is difficult too, because there are only three letters showing (four, when hovering). It would be very useful to have the option to size down the text and use more than one text line.

Drag-and-drop to playlist broken on v10

When attempting to drag a sound from the Moulinette sound browser into a playlist in Foundry v10, the following errors are generated:

Error: PlaylistSound Model Validation Errors
[PlaylistSound.volume]: must be an increment of 0.01
[No packages detected]
    at SchemaField._validateType (commons.js:3636:15)
    at SchemaField.validate (commons.js:3363:37)
    at PlaylistSound.validate (commons.js:5016:35)
    at new DataModel (commons.js:4793:26)
    at new Document (commons.js:5332:3)
    at new BasePlaylistSound (commons.js:8947:3)
    at new ClientDocumentMixin (foundry.js:12999:5)
    at new PlaylistSound (foundry.js:20084:5)
    at ClientDatabaseBackend._preCreateDocumentArray (foundry.js:12401:15)
    at ClientDatabaseBackend._createEmbeddedDocuments (foundry.js:12364:33)
    at ClientDatabaseBackend.create (commons.js:6261:33)
    at async PlaylistSound.createDocuments (commons.js:5631:23)

PlaylistSound Model Validation Errors
[PlaylistSound.volume]: must be an increment of 0.01
[No packages detected]

Sounds on S3 don't work

If you have moulinette set to use S3 for the location of assets, it correctly indexes that location and gets all the files, but when you try and play any, it tries to source them from the foundry server rather than from the S3 location i.e.

https://[server]/moulinette/sounds/custom/Other/Battle/Name.mp3 404 (Not Found)

Whereas it should be trying to play it from the S3 location. Normal playists in foundry using the same file in S3 work as expected.

Unable to play audio files indexed from The Forge (User Data or The Bazaar).

Description:
Audio files indexed by Moulinette Sounds in Forge aren't played as expected in Moulinette Sounds or playlists when the files are in either The Forge's 'User Data' or 'The Bazaar' locations.

Foundry Version: 10.288
Game System: dnd5e, 2.0.3
Hosting: The Forge
Active Modules: Moulinette Core 10.1.1, Moulinette Sounds 10.1.0, The Forge 1.10
OS: Windows 11
Browser: Microsoft Edge Version 106.0.1370.52 (Official build) (64-bit)

Steps to recreate:
Prerequisites: The Forge, at least one music/audio module installed (for example "Adventure Music").

  1. After loading into the world, launch Moulinette Sounds (from either the Moulinette toolbar or Ambient Sound Controls toolbar).
  2. Select Configure Sources.
  3. Select Pick folder and navigate to the following: The Bazaar > Modules > adventuremusic
  4. Select the Select Directory button.
  5. Enter values in the Creator and Pack fields, then select Add source.
  6. Close the Sources window and select the Index sounds button in Moulinette Sounds.
  7. After indexing is complete, select the Pack from the drop-down list.
  8. Attempt to play a track either using Moulinette Sounds buttons or by dragging and dropping into a playlist.

Expected:
The sound file can be played through either the Moulinette Sounds buttons ("Play Sound / Sound Stop", "Listen to sound or music (without playing it in Foundry)") or through the Foundry playlist interface after dragging a sound from Moulinette into a playlist.

Actual:
The sound isn't played. A 404 error message and a "Failed to load audio node" error message are displayed in the console log (see attached).

Additional notes: Once added to a playlist, a track's Audio Source field can be manually updated from "https%3A//" to "https://" to allow the track to play from the playlist (but remains unplayable from within Moulinette).

Attached log file and screen shots.
log-file.log
screen-shots.pdf

2.11.6 fails when sound menu selected

2.11.4 worked fine with my custom sounds in the sounds directory.

I recently updated to 2.11.6 and now when I select the moulinette icon, then the sounds icon (the note), An "Indexing" bar is briefly displayed, no popup window is displayed, and the following error is displayed in the console:

image


MoulinetteCache | Retrieving https://assets.moulinette.cloud/assets/jc4cncfvmpbq5nm3msxs1e50ra from cache
moulinette-cache.js:26 MoulinetteCache | Retrieving https://assets.moulinette.cloud/byoa/assets/jc4cncfvmpbq5nm3msxs1e50ra from cache
moulinette-file-util.js:438 Moulinette FileUtil |  moulinette/sounds/custom/index.json {target: "moulinette/sounds/custom", private: false, gridSize: null, dirs: Array(2), privateDirs: Array(0), …}
foundry.js:2013 TypeError: Cannot read property 'find' of undefined
[Detected 2 packages: moulinette-sounds, moulinette-core]
    at MoulinetteSounds.getPackList (moulinette-sounds.js:38)
    at async MoulinetteForge.getData (moulinette-forge.js:74)
    at async MoulinetteForge._render (foundry.js:2049)
    at async MoulinetteForge._render (foundry.js:2736)

Images and icons etc all work fine (before this error is produced by selecting the note icon)

Note that I am not a patron and just index my local sounds. I tried to delete the index.json file (in case that was causing the problem) but it had no effect.

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.