Math & Music

math & music

When I was a freshman, studying music, I built my first computer program… and I didn’t even know I was coding:

image

At the time, I was learning to analyze chords by identifying the individual notes, reordering them into “thirds”, and comparing this stack to the actual arrangement to determine the inversion. I didn’t know anything about programming at the time, but my roommate was an engineer who showed me Wolfram Alpha’s Mathematica, a coding environment useful to a number of fields.

image

Well, I was just as “screw the rules” then, so I learned just enough to build a sort of decision tree to do my chord analysis homework for me. Above, nested If[] statements determine the interval by calculating the distance between pitches (in half-steps). Below, a similar set-up figures out the inversion of a chord.

image

There are a bunch of similarities to the JavaScript world I generally live in these days. It looks like Mathematica uses [] brackets instead of () parentheses and {} squiggly brackets, and presents its arguments more like an Excel function, but all the math-y bits certainly work the same… except… I wish Javascript let you string inequalities together like that!

image

One interesting peculiarity here - I have multiple functions with the same name. Whereas JavaScript functions don’t much care how many inputs you actually feed them, it seems I have different versions of the same keychordtype[] function for different numbers of inputs (defined here with a trailing _ underscore).

image

And instead of the console.log() message or the alert() pop-ups, outputs are made visible with the MessageDialogue[] function. So even though I don’t have any comments, and my nesting, naming, and order are a bit sloppy (look at those closing brackets! ridiculous!), I can still understand what’s going on - 10 years and several languages later.

tl;dr: music theory is math; different languages have different syntax, but logic is logic; Mathematica has a 2-week trial I’m eating though to take these screenshots

project: chord analysis homework helper

More Posts from Laossj and Others

7 years ago

Tele-Present Water by David Bowen

I rarely use the phrase ‘mind blown’, but this is one of those rare occurrences.

An art installation which combines real-time data, mechanical puppetry, and a physical grid representation usually employed virtually with computers:

This installation draws information from the intensity and movement of the water in a remote location. Wave data is being collected in real-time from National Oceanic and Atmospheric Administration data buoy station 46246, 49.985 N 145.089 W (49°59'7" N 145°5'20" W) on the Pacific Ocean. The wave intensity and frequency is scaled and transferred to the mechanical grid structure resulting in a simulation of the physical effects caused by the movement of water from halfway around the world.

Link to the artist’s website for this work can be found here

7 years ago

So proud to celebrate strong role models like Amber Kirsch (praise hands). She used her visual effects superpower for the Wonder Woman film.

7 years ago

Bitsquare, decentralised #bitcoin exchange

7 years ago
9 massive banks just teamed up to take the technology behind bitcoin mainstream
Nine of the world's top banks have formed a partnership with New York startup R3 to develop the "fabric" of blockchain in banking.

Yep. That was quick. In a certain way.

8 years ago

Strange Beast, una especie de mini capítulo de “Black Mirror” sobre el futuro inmediato y el tema de mezclar realidad con realidad virtual/aumentada.

Se pueden activar subtítulos.

8 years ago

K-2SO will be there for you in augmented reality. Visit www.starwars.com/k2andme to find out how.

7 years ago
SP. Household Robot Calculates Optimal Move To Win Using Artificial Intelligence And Augmented Vision
SP. Household Robot Calculates Optimal Move To Win Using Artificial Intelligence And Augmented Vision
SP. Household Robot Calculates Optimal Move To Win Using Artificial Intelligence And Augmented Vision

SP. Household robot calculates optimal move to win using artificial intelligence and augmented vision capabilities but does not tell anyone.

Bicentennial Man (1999)

7 years ago

Finding your friends at a festival | by David Urbina  for @neonapp.  Get notified when the app is released. Music: Seven Lions x Illenium x Said The Sky.

the age of the really useful apps is starting

— Nil (@niluspc)

August 16, 2017

This is rad. Hope it shows up at some festivals soon https://t.co/c9a1W7auEe

— Goldroom (@goldroom)

August 16, 2017

One of the best uses for AR I’ve seen. https://t.co/kxGAUzVyEf

— Alexander Danling (@baobame)

August 15, 2017

Seeing more practical and indispensable use-cases for AR than I have for new apps in quite a while. pic.twitter.com/zwHEGkYZrK via @ARKitweekly

— Scott Belsky (@scottbelsky)

August 15, 2017

Reasons like this are why I think AR >> VR https://t.co/7rt5pRT3o6

— Mohammad Al Azzouni (@mazzouni)

August 17, 2017

I need this in my life! https://t.co/yGbGrWYLBD

— Stefan Goodchild ⚛ (@stefangoodchild)

August 15, 2017

ARKit really will bring a new wave of useful functionality to the phone. https://t.co/H6TT1SlFkj

— CM Harrington (@octothorpe)

August 15, 2017

I love this. Good example of AR solving a REAL problem 👏 https://t.co/6wx3RSwSag

— Sam Clarke (@sclarke111)

August 17, 2017

ARKit is going to empower so many awesome apps when iOS 11 ships. https://t.co/MUaTqbDUb1

— Matt Sayward (@mattsayward)

August 15, 2017

By far the most functional implementation of AR I’ve ever seen. https://t.co/cWC3ymxq9z

— Thomas Claessens (@DeClaessens)

August 16, 2017

This looks mighty useful https://t.co/vh3vTjuVLO

— Max Böck (@mxbck)

August 15, 2017

Impressive (and actually useful) https://t.co/VHdlXzAdGY

— Dominik Schmidt (@sluderndotcom)

August 16, 2017

This is such a good idea! https://t.co/X7xhgB7xeT

— Donna Lowe (@reloweeda)

August 15, 2017

👍🏽 would be super handy https://t.co/9Tk2Q16qnE

— Simon (@liquidmedia2013)

August 15, 2017

Genuinely useful AR coming to a field near you. https://t.co/4M8b92UJLk

— Cennydd (@Cennydd)

August 16, 2017

Find you festival friends with AR - Definitely the coolest implementation I’ve seen so far. App revolution 2.0 on its way. https://t.co/dKDkPRbMw1

— Tom Austin (@tomhaustin)

August 15, 2017

I can’t wait to try his app 😱 https://t.co/YHkZ9F91Zn

— Alexandre Mouriec (@mrcalexandre)

August 15, 2017

This is magical. ARKit demos by the app developers have been 👌🏻. Can’t wait to play with these apps. https://t.co/0RmQ7kkCiE

— KietChieng  (@KietChieng)

August 16, 2017

GIMME THAT GIMME THAT RIGHT NOW https://t.co/Hg6fO6GWOq

— Valentin (@valdecarpentrie)

August 15, 2017

This is something I need https://t.co/iVjEkRxCaJ

— Andrew Rodebaugh (@andrewrodebaugh)

August 15, 2017

Less lost folks wandering the festival grounds aimlessly… Love some functional AR! https://t.co/deXJ8nMFQu

— Kent Weber (@WeberKent)

August 15, 2017

Again. This will be a game changer https://t.co/YiN2LQvmU5

— Jens@Gamescom (@JensHerforth)

August 15, 2017

This is a pretty cool use of GPS+ARKit, awesome demo use case! 🛳-it! #ARKit #MapKit #iOS11 https://t.co/LmMjPfo7KW

— Benjamin Hendricks (@benjhendricks)

August 15, 2017

The practical uses of #AR are incredible… this kind of thing will be the norm in the next few years & I can’t wait to test it. #Innovation https://t.co/XdkAdEG11G

— Josh Worth (@JoshWorthh)

August 15, 2017

OMG best use of the #ARKit. At festivals, i spend half my time looking for my friends in the crowd… https://t.co/YPb0AfAFjn

— Julie Tonna (@julie_tonna)

August 15, 2017

Awesome! This would also be cool for something like @ingress / @PokemonGoApp. Ps: love that new iPhone design 😉

— Marcel (@marceldk)

August 15, 2017

OMG !!!!!!!! #Devslopes https://t.co/MzN5RKn1DI

— leonyuon (@leonyuonl)

August 15, 2017

This is amazing! https://t.co/ZrpQBEgaU3

— Shane Griffiths (@shanegriffiths)

August 15, 2017

i just cant stop getting excited by these ARKit demos 🌟 https://t.co/IXAM6N0VBf

— nikhil srinivasan 👾 (@nvs)

August 15, 2017

Just think how much more enjoyable festivals would have been if you weren’t constantly losing/looking for everyone. https://t.co/uzxNJMqI4c

— Neil Cooper (@ncooperdesign)

August 15, 2017

Future killer Jazz Fest/Mardi Gras app for iPhone. (and really every other large gathering where you wanna find your friends) https://t.co/RXkVrLOuQB

— Stephen Sullivan (@swgs)

August 15, 2017

💯 arkit is legit 💯 https://t.co/8h3gWtdMtE

— Sean PJPGR Doran (@spjpgrd)

August 15, 2017

Another cool use of #ARKit https://t.co/0QUrN4BgJF

— Matt Zarandi ⚡️ (@MattZarandi)

August 15, 2017

Now this is something genuinely useful for AR https://t.co/7CvykUc2SQ

— Joel (@joevo2)

August 16, 2017

#musthave https://t.co/4KIhkWghKD

— Gee 🔥 (@Georg_Schmo)

August 15, 2017

This would have come in so handy on many occasions. https://t.co/2jI7uQn1Lf

— Steven Lin (@Stevenchlin)

August 15, 2017

Another great usecase! https://t.co/T5ggr8Qyez

— Schlabbeschambes (@DerHurly)

August 15, 2017

AR is gonna be so cool https://t.co/qmlxshUk03

— Beans (@beano629)

August 15, 2017

This is pretty brilliant! https://t.co/TevMmjBLKE

— Vlad Vukicevic (@vvuk)

August 15, 2017

A 🔥use case here ⬇️ just amazing #ARKit https://t.co/elPyWbW4iO

— Glenville Morris (@glenvillemorris)

August 15, 2017

Now thats a smart techcombi https://t.co/wH8ECU7VxO

— thefirstfloor (@jeroenduhmooij)

August 15, 2017

We gonna be livin’ in 2025 real soon. https://t.co/RgXCAjdb2t

— David Bird (@David_Burns_Red)

August 15, 2017

here’s another super rad use case that would also work for finding your Lyft / Uber driver https://t.co/JVm3oqGrW9

— TIFFANY ZHONG (@TZhongg)

August 15, 2017

Great usage of ARKit! https://t.co/jJ1VDOX4zb

— Elliot Turner (@eturner303)

August 15, 2017

#ARKit (demo) with a practical concept to navigate space and impact social engagement #AR #interactivetech #socialAR https://t.co/2352xf9haz

— Melody Koebler (@melabyyte)

August 15, 2017

Well, that’s bloody awesome https://t.co/XvCLwNsqJB

— Neil Kleiner (@nkleiner)

August 15, 2017

Handy real-world application for #AR. Beats “we’re to the left of the stage” https://t.co/zoMbK4dUSm

— Jon Williams (@yesthatjon)

August 15, 2017

Now THIS is awesome › https://t.co/xP6LamQuua #ARKit

— Jermaine (@dviate)

August 15, 2017

Neat idea. Is it just me or does it feel like it wants a giant column of light like in an MMO or something? https://t.co/SM2dKw80wT

— Gabe Weiss (@GabeWeiss_)

August 15, 2017

Yes and yes! And not just for finding people you already know, opt-in real-time people discovery in the offline world has massive potential https://t.co/zsAQy0q55z

— Shuvi👩🏻‍💻 (@shuvi)

August 15, 2017

Find my friends on a whole new level #ARKit https://t.co/l53rkXr4PS

— Spencer Bratman (@SpencerBratman)

August 15, 2017

Eyyy this is what I’m talkin about—next to disrupt social media? https://t.co/eN2BSvYXNh

— Kenneth Ng (@KennethLNg)

August 16, 2017

Well this is awesomely handy. https://t.co/KmU4FJvErV

— Dan Z (@danactual)

August 16, 2017

Stop this is amazing!! https://t.co/ZcTy1iAlVt

— Daniel Feodoroff (@mrdanielfeo)

August 16, 2017

Clever! https://t.co/SnjqQD8gL9

— geoff brown (@cgeoffreybrown)

August 16, 2017

Looking forward to way more of this … https://t.co/Qdx0fMK3sh

— Neil Voss (@neilvoss)

August 16, 2017

Just watch this video, one of the best uses of AR I’ve seen https://t.co/OZFjwiIKLP

— Ben King (@kngbn79)

August 16, 2017

AR tinder is gonna be wicked

— Utkarsh Gupta (@u7karsh)

August 16, 2017

Now this is cool! #arkit #ar #AugmentedReality https://t.co/s7E4jkqkpN

— Jen Abel 💬💫 (@jjen_abel)

August 17, 2017

i’ve been waiting for an app like this for a while https://t.co/0uaEwKgtm9

— ✨🌵🦊 🌴✨ (@ryanrogalski)

August 17, 2017

See All Videos

7 years ago
Deep Video Portraits
Deep Video Portraits
Deep Video Portraits
Deep Video Portraits

Deep Video Portraits

Graphics research from Stanford University et al is the latest development in facial expression transfer visual puppetry, offering photorealistic and editable results:

We present a novel approach that enables photo-realistic re-animation of portrait videos using only an input video. In contrast to existing approaches that are restricted to manipulations of facial expressions only, we are the first to transfer the full 3D head position, head rotation, face expression, eye gaze, and eye blinking from a source actor to a portrait video of a target actor. The core of our approach is a generative neural network with a novel space-time architecture. The network takes as input synthetic renderings of a parametric face model, based on which it predicts photo-realistic video frames for a given target actor. The realism in this rendering-to-video transfer is achieved by careful adversarial training, and as a result, we can create modified target videos that mimic the behavior of the synthetically-created input. In order to enable source-to-target video re-animation, we render a synthetic target video with the reconstructed head animation parameters from a source video, and feed it into the trained network – thus taking full control of the target. With the ability to freely recombine source and target parameters, we are able to demonstrate a large variety of video rewrite applications without explicitly modeling hair, body or background. For instance, we can reenact the full head using interactive user-controlled editing, and realize high-fidelity visual dubbing. To demonstrate the high quality of our output, we conduct an extensive series of experiments and evaluations, where for instance a user study shows that our video edits are hard to detect. 

More Here

7 years ago
Photo-editing App FaceApp Now Includes Black, Asian Indian And Caucasian Filters
Photo-editing App FaceApp Now Includes Black, Asian Indian And Caucasian Filters
Photo-editing App FaceApp Now Includes Black, Asian Indian And Caucasian Filters
Photo-editing App FaceApp Now Includes Black, Asian Indian And Caucasian Filters
Photo-editing App FaceApp Now Includes Black, Asian Indian And Caucasian Filters

Photo-editing app FaceApp now includes Black, Asian Indian and Caucasian filters

On Wednesday morning, the photo-editing app FaceApp released new photo filters that change the ethnic appearance of your face.

The app first became popular earlier in 2017 due to its ability to transform people into elderly versions of themselves and different genders.

These new options, however, will likely cause some outrage: The filters are Asian, Black, Caucasian and Indian.

Selfie apps like Snapchat have taken criticism for filters that apply “digital blackface.” In 2016, Snapchat released a Bob Marley filter that darkened the skin and gave users dreadlocks. Snapchat said another one of its 2016 filters was “inspired by anime,” but many people called it “yellowface,” as it seemingly turned the user into an Asian stereotype.

FaceApp’s newest filters, however, don’t pretend they’re anything but racial. Read more (8/9/17 12 PM)

follow @the-future-now

  • marquantjc-blog
    marquantjc-blog liked this · 6 years ago
  • luka-b-blog
    luka-b-blog reblogged this · 7 years ago
  • luka-b-blog
    luka-b-blog liked this · 7 years ago
  • laossj
    laossj reblogged this · 7 years ago
  • laossj
    laossj liked this · 7 years ago
  • methematiciansblog
    methematiciansblog liked this · 7 years ago
  • chasing--andromeda
    chasing--andromeda liked this · 7 years ago
  • jaerijaeri-blog
    jaerijaeri-blog liked this · 7 years ago
  • kagdag-blog
    kagdag-blog liked this · 7 years ago
  • 9ctgold
    9ctgold reblogged this · 7 years ago
  • themusicalphilosopher-blog
    themusicalphilosopher-blog reblogged this · 7 years ago
  • duckduckoooo
    duckduckoooo liked this · 7 years ago
  • mqddyy-blog
    mqddyy-blog liked this · 7 years ago
  • oasiris-old
    oasiris-old liked this · 7 years ago
  • zorpgon
    zorpgon liked this · 7 years ago
  • badalmavri-blog
    badalmavri-blog liked this · 7 years ago
  • compmath-blog
    compmath-blog liked this · 7 years ago
  • jalw1
    jalw1 liked this · 7 years ago
  • quinz86
    quinz86 liked this · 7 years ago
  • littleprettyproblem
    littleprettyproblem liked this · 7 years ago
  • amarantine-amirite
    amarantine-amirite liked this · 7 years ago
  • mrobotbox
    mrobotbox liked this · 7 years ago
  • notdaddy
    notdaddy reblogged this · 7 years ago
  • joyfullylazyyouth-blog
    joyfullylazyyouth-blog liked this · 7 years ago
  • 1111brainfiles
    1111brainfiles liked this · 7 years ago
  • syruisse-blog
    syruisse-blog reblogged this · 7 years ago
  • syruisse-blog
    syruisse-blog liked this · 7 years ago
  • mindspacecreater
    mindspacecreater liked this · 7 years ago
  • bagalov3
    bagalov3 liked this · 7 years ago
  • lilcuhnt-blog
    lilcuhnt-blog liked this · 7 years ago
  • humanbeinghumandoing-blog1
    humanbeinghumandoing-blog1 reblogged this · 7 years ago
  • pmdempire-blog
    pmdempire-blog liked this · 7 years ago
  • sabrinah-writes
    sabrinah-writes liked this · 7 years ago
  • opswaggirl
    opswaggirl liked this · 7 years ago
  • allmyplanswillsucceed
    allmyplanswillsucceed liked this · 7 years ago
  • xxdeathstridexx-blog
    xxdeathstridexx-blog liked this · 7 years ago
  • stupidddnerd
    stupidddnerd liked this · 7 years ago
  • facelessace5
    facelessace5 liked this · 7 years ago
  • petrof79-blog
    petrof79-blog liked this · 7 years ago
  • tedhited-blog
    tedhited-blog liked this · 7 years ago
  • babynumbgirl
    babynumbgirl liked this · 7 years ago
  • puppyplace1
    puppyplace1 liked this · 7 years ago
  • braquaicoo
    braquaicoo liked this · 7 years ago
laossj - 无标题
无标题

295 posts

Explore Tumblr Blog
Search Through Tumblr Tags