sketchucation logo sketchucation
    • Login
    βŒ› Sale Ending | 30% Off Profile Builder 4 ends 30th September

    Sketchyphysics sound sets (UPDATED)apr.5@10:42AM

    Scheduled Pinned Locked Moved SketchyPhysics
    17 Posts 5 Posters 2.9k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      CPhillips
      last edited by

      Thanks BTM! One thing I noticed though.

      The playsound command is based on the Sketchup api's play_sound(). At least on Windows it is pretty limited. You can only play one our two sounds at a time and then they start to buffer. For that reason it makes sense to have the samples as short as possible. I noticed that all your sounds are about 5 sec even though the actual sound is much shorter.

      It makes me wonder if it is behaving the same on Windows and Mac. How many sounds can you play at once?

      It would be really cool if the Mac version was better than the PC. That way I wouldnt have to find a cross platform solution to playing sound.

      1 Reply Last reply Reply Quote 0
      • B Offline
        BTM
        last edited by

        Ah, the problem with garageband is that it records until the end of the last measure (mostly it's used for songs), so it records for a few extra seconds. It was never a problem for me though, because my mac can play as many sounds as a time as I want. πŸ˜„ I tried playing the explosion sound on a 1 frame basis once, the sound keeps playing even after the next one starts, and let's just say it was a bit loud πŸ˜†

        1 Reply Last reply Reply Quote 0
        • C Offline
          CPhillips
          last edited by

          Well that is very good news. I can code up a playsound replacement on Win that should be much closer to that.

          On solution to sounds I have been working on is to use MIDI. Both Win and Mac come with a very large patch set of sounds.

          301 Moved Permanently

          favicon

          (www.midi.org)

          Maybe omething like:

          playnote(instrument,note)

          playnote("gunshot","C3")
          playnote("bongo","C3")

          1 Reply Last reply Reply Quote 0
          • B Offline
            BTM
            last edited by

            You'd still allow the current way of using our own sounds too, right?

            1 Reply Last reply Reply Quote 0
            • C Offline
              CPhillips
              last edited by

              Oh sure. I have the embedded sounds working and I am working on a PC wrapper for the better playsound. It will also support .MP3 in addition to .WAV.

              1 Reply Last reply Reply Quote 0
              • B Offline
                BTM
                last edited by

                ... m4a?

                1 Reply Last reply Reply Quote 0
                • C Offline
                  CPhillips
                  last edited by

                  I dont think so. The Sketchup docs say just mp3 and wav.

                  1 Reply Last reply Reply Quote 0
                  • X Offline
                    xBlAcKBiRdx
                    last edited by

                    that sounds folder is not in my sketchyphysics3 folder

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BTM
                      last edited by

                      @xblackbirdx said:

                      that sounds folder is not in my sketchyphysics3 folder

                      … It should be, if you have sketchyphysics3 rc1 or later.

                      1 Reply Last reply Reply Quote 0
                      • X Offline
                        xBlAcKBiRdx
                        last edited by

                        well its not there can u give ur install?

                        w8 a minute rc1? whats that?? ❓

                        UPDATE: nevermind i got it!!

                        but... i don't know how to use the sounds...

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          tecflip
                          last edited by

                          @cphillips said:

                          Oh sure. I have the embedded sounds working and I am working on a PC wrapper for the better playsound. It will also support .MP3 in addition to .WAV.

                          how do i import sounds?

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement