Rhino MP3 Player

FOR SURE an S&G Project - I have built an MP3 player for Rhino in Grasshopper:

There is a reason, I will make a video and share the source code - watch this space.

Cheers

DK

11 Likes

?
Salt and ginseng?
Short and ginger?
Sleepy and grumpy?
So many possibilities!

But very cool project, nonetheless! :grinning_face_with_smiling_eyes:
-Jakob

You’ll need to ask a Kiwi, maybe an Aussie…

  1. (idiomatic, vulgar) For no particular reason, just because it is fun or entertaining; or to relieve boredom.
1 Like

Why should the user leave rhino to change music? And why do we not have “McNeels greatest Rhino hits” music album yet?

I like that attitude, more power to you😎

2 Likes

S&G comes from Salt and (g)Pepper.

Grok have another opinion about the meaning of “S&G Project”:

The term “S&G Project” doesn’t have a universally recognized meaning, and its interpretation depends heavily on context. Based on available information, here are the most relevant possibilities:

  1. Sustainable Growth Projects (SGP): This refers to an organization named Sustainable Growth Projects e.V., which focuses on implementing long-term, sustainable development projects globally. Their mission emphasizes helping communities become self-reliant and improving quality of life through transparent, locally-driven initiatives. If “S&G Project” is a typo or shorthand for “SGP,” this could be the intended meaning.
  2. Simon & Garfunkel (S&G): In a cultural context, “S&G” often refers to the folk-rock duo Simon & Garfunkel. A “S&G Project” could colloquially describe a music-related endeavor, such as a tribute album, cover band, or documentary inspired by their work. However, this is speculative without specific evidence tying “S&G Project” to the band.
  3. Business or Industry Context:
  • S&G as a Company or Firm: Entities like S&G General Service Inc. (a construction firm) or S&G Strategy (a business strategy consultancy) use “S&G” in their branding. A “project” in this context could refer to a specific initiative or contract undertaken by such a firm.
  • Specific Gravity (S&G): In technical fields like engineering or chemistry, “S&G” can stand for Specific Gravity. An “S&G Project” might relate to a scientific or industrial project involving material density analysis, though this is niche and less likely.
  1. Slang or Informal Use: In military slang, “S&G” can mean “Shits 'N Giggles,” implying something done for fun or without serious intent. An “S&G Project” in this sense could be a lighthearted or casual undertaking, but this is highly informal and context-dependent.
  2. Other Acronyms: “S&G” has multiple meanings, such as “Services and Goods” or “Studs and Girts” (in construction). Without more context, these are less likely to apply directly to a “project” but could be relevant in specific industries.
    Conclusion: Without additional context (e.g., industry, location, or purpose), the most plausible interpretation is that “S&G Project” refers to a project under an organization like Sustainable Growth Projects (SGP) or a business entity using the S&G acronym. If you can provide more details—like the field, region, or source where you encountered the term—I can narrow it down further. Alternatively, it could be a typo or a specific project name not widely documented.

:joy:
Never heard shits’n’giggles abriviated before - every day we learn :grinning_face:

We have a winner!

1 Like

Tsk. MP3.

You should convert your tracks to Ogg instead (Vorbis if you want to use the old format, Opus if you want to be modern), or Matroska or WebM.

:wink:

@nathanletwory

Now, did you really want to hear about my past with MP3’s?

In 1999 I installed a small form factor PC running on an inverter under the floor in the boot of my then company car with something like 27 hours of MP3’s ripped from mine and friends CD collections.

The system had a 20x2 text LCD on the dash wired to the parallel port and a IR remote wired to a COM port.

27 hours of music was enough for me to drive the length of New Zealand and back and never hear the same song twice!

I ended up rolling the whole thing into my final year project when I got around to finishing my Electronic Engineering Degree a few years later. I replaced Winamp with a DOS based MP3 player which took boot time/time to first song from 2 min to 30 secs. Placed ALL the comms on the serial port by using a 80C51 micro controller to drive the LCD and encode the IR remote and push buttons - all coded in assembly!

Actually this player is based on pygame - I’m sure it can support ogg - I’ll add it to the development list…

Cheers

DK

2 Likes

OK, I made a video, it is long, but it shows how it was done:

Single coolest thing learned in doing this project - how to import Python 3 libraries in the new PY3 components

#! python3

#requirements: pygame

from pygame import mixer

SO GOOD!

Cheers

DK

1 Like

Now available on the package manager:

Just search MP3, adds a single command “RhinoMP3”.

Should run on MacOS, my test machine is down for today - not had a chance to test.

Cheers

DK

3 Likes

OK - found an ‘interesting’ bug.

When working in Grasshopper while having this running I cannot adjust sliders or delete any components using the delete button.

I suspect it is due to using a trigger component on a 1 sec cycle in the MP3 player code that pulls UI focus off GH and onto Rhino…

Cheers

DK

2 Likes

Just got the time to get my Mac Mini test bed running - its WERKS!

Cheers

DK