City distances in Northern France

Advertisements

Cycling in France

Aiming to take the campervan to France this year. Potential main cycling routes… no info yet on the Routes Vertes or the VeloRoutes. (BdS references are to Baie de Somme)

Honfleur to Deauville – 1 hour

Honfleur to Rouen – 4.5 hours

Dieppe to Rouen – 3.5 hours

BdS to Dieppe – 3 hours

Calais to Gravelines – 1 hour

Le Touquet to Dieppe – 6 hours

Calais to Dieppe – 9 hours

Calais to Le Touquet – 4 hours

BaieDeSomme to Amiens – 3.5 hours

Useful motoring maps

NI Strummed Acoustic – midi editing

This post talks about me getting Strummed Acoustic (SA) as part of Komplete 11.

I now want to get some control over my recording by understanding enough about SA events to understand how to change the following mid-song by editing the song using the midi editor in, for my setup, Reaper, as a DAW:

  1. The pattern
  2. The pitch
  3. The accent/dynamic

Change the Pattern

First, listen to this sample, which gives 4 bars of a non-damped pattern, then the same 4 bars but damped, then repeats both those (so 4 non-damped, 4 damped, 4 non-damped, 4 damped).

The pattern changes are done by hitting a note in the second octave – in SA, the second octave is effectively used for control notes to implement pattern changes, as shown in the UI:

Change the Pitch

In this sample, you hear the transition from a chord played lower down the fret, to one higher up:

This is a “proper” control event – the Mod Wheel takes value [0] for the default fretboard position, that is, lower down, and the value [127] for the higher pitched version of the chord:

Change the accent/dynamic

… that is, make it softer / louder. Again a proper CC event, this time – Pitch Bend. When I was playing with the values, the arithmetic in my DAW, Reaper, seemed a bit off, in that sure the minimum value is zero, seems reasonable, but then adding 4000 to that gave 12192, and adding 8191 to that gave 16383. Regardless, the general principle is that something around zero gives a softer sound, and something around 16,000 gives a louder sound. For something more definitive, I googled [midi pitch bend min and max value], and found this as one of the returned posts. It will do.

Again, first an example of the output, going from soft to loud and back to soft:

Not much more to add to my opening point about how to make things softer and louder.

 

 

 

Prism: INotifyPropertyChanged implementation usage with BindableBase

Did one of these 3 years back for Windows Phone 8.1 I guess.

Gist for this new one here.

Step 0 – In Visual Studio, start a new Blank App (Universal Windows)

Step 1 – In Visual Studio, install Prism.Windows

PM> Install-Package prism.Windows -Version 6.3

Note that doing this caused prism.Windows to appear in the project references.

Step 2 – to start off tidy, add folders View, Model, ViewModel to the project

Step 3 – create a viewmodel file(s) (e.g. MahVm.cs as below),  and follow the code below, noting that MahVm inherits from BindableBase (once you add in the using for Prism.Mvvm)

 

Windows 10… N – don’t use it for app development.

At least, if the app in question uses speech. Background is that I routinely use Azure VMs for development… so let’s extend that to writing apps. The ready-made VMs that also include Visual Studio are the “N” variants. So I used them, as usual. However, I wasted a number of hours failing to get to the bottom of this error when executing a pretty standard block of text-to-speech code (at the time I was not questioning whether “N” was OK to use):

MigratingWinPhoneApp15

Class not registered

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.
ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.
HandleNonSuccessAndDebuggerNotification(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
 at HW.MainPage.d__1.MoveNext()} System.Runtime.InteropServices.COMException

I spent a lot of time after that trying to debug, googling up the wrong tree, reinstalling various releases of Visual Studio, all with the same, bad, result. In fact I should have just gone to bed, because as ever a tiny light bulb came on when I thought about… N.

So this morning I googled issues around Visual Studio and Windows N 10, and almost immediately found this:

NotWin10N_05

So I tried the media feature pack, got a message that “does not apply to this installation” or somesuch. Yes I could have persevered, but decided to trash the N instance, and create a non-N instance, and manually install Visual Studio, and this sample. And then it was all fine.

NotWin10N01

And I thought there might be some issue with trying to do speech on a VM, but that was all fine, and came loud and clear through my speakers on my host PC. QED.

 

TFS/MTM API – Nuget

Just dumping notes tonight, as just need to get things recorded and move on.

Install-Package Microsoft.TeamFoundationServer.ExtendedClient -Version 15.112.1

https://www.nuget.org/packages/Microsoft.TeamFoundationServer.ExtendedClient/

lambda-tester: verifying callbacks

Their (see post from last night) documentation is really clear with good examples that you can easily work from.

So I’ve now moved on to trivial callback verification. Some screenshots as I inched forward…

npm install chai -g
npm install chai --savedev
npm init
mocha

 

 

Gist.