Reset NVRAM and SMC

NVRAM
Turn off, turn on, immediately press these 20 seconds:
macos-nvram-p-key
Computer restarts few times during this operation.

SMC
Shut down and unplug power. Hold the Shift, Option, and Control keys on the left side and press the power button and hold keys for 10 seconds, then release.
shif

Musical scales / steps between

2212221;Major
2122221;Minor
2122131;Harmonic Minor
2122221;Melodic Minor
23223;Pentatonic Major
32232;Pentatonic Minor
32113;Pentatonic Blues
2323;Pentatonic Neutral
2212221;Ionian
32122122;Aeolian
2122212;Dorian
2212212;Mixolydian
1222122;Phrygian
2221221;Lydian
1221222;Locrian
1212121;Dim half
2121212;Dim whole
22222;Whole
31313;Augmented
111111111111;Chromatic
2131212;Roumanian Minor
1312122;Spanish Gypsy
321132;Blues
22323;Diatonic
1312131;Double Harmonic
12111222;Eight Tone Spanish
1322211;Enigmatic
222211;Leading Whole Tone
2222121;Lydian Augmented
1222221;Neoploitan Major
1222122;Neopolitan Minor
12341;Pelog
222312;Prometheus
132312;Prometheus Neopolitan
131313;Six Tone Symmetrical
1212222;Super Locrian
2221122;Lydian Minor
2131122;Lydian Diminished
211211121;Nine Tone Scale
21212121;Auxiliary Diminished
222222;Auxiliary Augmented
12121212;Auxiliary Diminished Blues
2211222;Major Locrian
2221212;Overtone
1212222;Diminished Whole Tone
2122122;Pure Minor
232212;Dominant 7th

Chords in minor scale

Minor scale chords

Columns: First 7 columns are notes in scale (first column is the scale key). Next 7 columns are chords in that scale.

C;D;D#;F;G;G#;A#;Cm;D_dim;D#;Fm;Gm;G#;A#
C#;D#;E;F#;G#;A;B;C#m;D#_dim;E;F#m;G#m;A;B
D;E;F;G;A;A#;C;Dm;E_dim;F;Gm;Am;A#;C
D#;F;F#;G#;A#;B;C#;D#m;F_dim;F#;G#m;A#m;B;C#
E;F#;G;A;B;C;D;Em;F#_dim;G;Am;Bm;C;D
F;G;G#;A#;C;C#;D#;Fm;G_dim;G#;A#m;Cm;C#;D#
F#;G#;A;B;C#;D;E;F#m;G#_dim;A;Bm;C#m;D;E
G;A;A#;C;D;D#;F;Gm;A_dim;A#;Cm;Dm;D#;F
G#;A#;B;C#;D#;E;F#;G#m;A#_dim;B;C#m;D#m;E;F#
A;B;C;D;E;F;G;Am;B_dim;C;Dm;Em;F;G
A#;C;C#;D#;F;F#;G#;A#m;C_dim;C#;D#m;Fm;F#;G#
B;C#;D;E;F#;G;A;Bm;C#_dim;D;Em;F#m;G;A

What does Chorus and Flanger do?

Chorus samples the input, slightly detunes it and mixes it with the original signal to produce a somewhat thicker, shimmering sound. Use it to thicken up background vocals, or to double the sound of brass and woodwind instruments. (source Behringer DeepMind 12 manual) The effect can be achieved by using multiple, slightly detuned oscillators for each note (source).
Flanger emulates the phase-shifting sound (comb-filtering) originally created by applying pressure against the flange of the reel on a tape recorder. This effect creates a unique “wobbly” sound that is quite dramatic when used on vocals and instruments. (source Behringer DeepMind 12 manual). From wikipedia: Flanging /ˈflændʒɪŋ/ is an audio effect produced by mixing two identical signals together, one signal delayed by a small and gradually changing period, usually smaller than 20 milliseconds. This produces a swept comb filter effect: peaks and notches are produced in the resulting frequency spectrum, related to each other in a linear harmonic series. Varying the time delay causes these to sweep up and down the frequency spectrum. A flanger is an effects unit that creates this effect.

iOS touchesEnded for multitouch single finger release

If you need to know which finger actually were lifted from screen when doing a multiple touch tracking, you need to check the phase variable from UITouch to see if it has been actually lifted from screen. If the single touch has ended, it’s phase will be UITouchPhaseEnded

Normally when you lift one finger, the touchesEnded is called with a set of all active touches. I wish it would be a set of only touches that have ended.

Example code:

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
{
NSSet *allTouches = [event allTouches];

for (int zz=0;zz<[allTouches count];zz++)
{
UITouch *touch = [[allTouches allObjects] objectAtIndex:zz];

CGPoint touchPos = [touch locationInView:self];

if (touch.phase==UITouchPhaseEnded)
{

Rant: my Apple fanboyism is starting to crack

Really, really annoying things with Apple products, every day:

– My iPhone 6S has battery malfunction (shuts down at 40% of battery level and refuses to start) and is under warranty change. However the repair shops cannot get the batteries because of high demand. Apple calls this issue affecting small amount of iPhones. I doubt it.
– Using “night mode” which mutes the iPhone automatically during night. However when plugging the charging cable makes “pling” noise when everything else is muted. Really nice because when rest of family is sleeping and you want to charge overnight.
– Forget to put the phone on charging. Wakes me up at morning still, good boy. To shut off the alert I need to enter my 6 digit passcode (because the phone rebooted). Why I need to enter passcode on reboot? Isn’t the fingerprint scanning enough secure?! Trying to tap the passcode without eyeglasses immediately when woken up is like a nasty test.
– Apple releases new Macbook (finally) and I was waiting to replace my old Macbook with brand new. Apple raises prices and removes USB ports and SD card slot on new model. Well played, Apple.
– I purchase previous model Macbook because of previous issue and think 128GB is enough for the “internal” SSD. I was wrong, installed Xcode and constantly running out of disk. Irritating me with nags. The internal SSD cannot be replaced. Need to use external hard disks.
– My iPad wants to make OS upgrade but I don’t want to do it. Asks it every day. With two dialogs. I. DON’T. WANT. TO. UPDATE. PLEASE. LET. ME. CONTINUE. Solution: there isn’t any real solution, but you can hack it.

Next laptop: back to Windows? Really?!

Technology snippets