Coder Social home page Coder Social logo

sound-tuner-skill's Introduction

Sound tuner

This skill plays a sound in the given note or an sound in the given guitar string.

About

This skill plays a sound in the given note or an sound in the given guitar string. This can be used to tune a musical instruments.

Mycroft is using the even tempered (aka equal tempered) scale, where an octave is a frequency ratio of exactly two and a semitone is a frequency ratio of exactly the twelfth root of two. In the real world however many different temperaments may be used - see en.wikipedia.org/wiki/Musical_temperament - and octaves too can vary in size, see en.wikipedia.org/wiki/Stretched_octave.

Also Mycroft call middle C for "C4" : this is the commonest octave numbering but some people call middle C for "C3" or even for "C5".

Examples

  • "Gime me an C note"
  • "Give me an guitar Low E string"
  • "Give me an A4 note"
  • "Give me an violin A string"

Mycroft knows the strings on these instruments:

  • guitar
  • mandolin
  • cello
  • viola
  • banjo
  • bass

Credits

Andreas Lorensen (@andlo)

Supported Devices

platform_mark1 platform_mark2 platform_picroft platform_plasmoid

Category

Information

Tags

#sound #tuner

sound-tuner-skill's People

Contributors

andlo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

domcross msgpo

sound-tuner-skill's Issues

Problems on Mark 1

"Give me an A4" results in

  File "/opt/mycroft/skills/sound-tuner-skill.andlo/__init__.py", line 38, in handle_tuner_sound
  File "/opt/mycroft/skills/sound-tuner-skill.andlo/__init__.py", line 60, in make_sound
  wavef = wave.open('sound.wav', 'w')
  File "/usr/lib/python3.4/wave.py", line 499, in open
    return Wave_write(f)
  File "/usr/lib/python3.4/wave.py", line 293, in __init__
    f = builtins.open(f, 'wb')
PermissionError: [Errno 13] Permission denied: 'sound.wav'

EDIT: found a quick fix - use /tmp/sound.wavas filename.

In addition I have a hard time to get any of my requests recognized as speech-to-text returns lower case, e.g. "give me an a4" and the note names are currently coded in upper case "A4".

The soundfile sounds very synthetic...

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.