Timecode reader software
PCTimecode v2.0 Trial and Supervisor

Internal clock function
It will continue to count seconds even if you take off the cable.

Trial mode is equipped with a basic performance necessary for decoding.
You can import the timecode directly to Excel.
*System Requirements
Windows XP SP3 or later
.NET framework 2.0 or later
Audio input Device that can be recorded in 48000Hz, 8bit, mono or 96000Hz, 8bit, mono.
MS Excel, If you want to logging.
New function
Internal clock, like JamSync.
It dose not display frames.
Accuracy of the Internal clock will less than 1 second per hour
.


Installation and starting

 
PCTimecode.msi
Installation package
Installation:
Unzip "PCTimecode.zip".
To start the installation, click "PCTimecode.msi".

There is no problem if there are warning of unknown publisher leaves during the installation.

Application folder to be created is 60KB or less.
 
PCTimecode
Shortcut
Starting:
You can icon to the left on the desktop, double click it to start.
(or Start->Programs->PCTimecode)

If you want to logging a timecode to start the MS Excel.
Mechanism of PCTimecode:
 diaglam
You can get the text on the form of other application using the MS Excel macro function.
To do this you need to know the class name of other application.
I gave an original class name to PCTimecode.
//Form->PCTimecode//
//Timecode->Eidt//
You can get the Timecode text on PCTimecode using the "FindWindowEX" of Windows API.

If you unfamiliar with the macro.Please use a sample.xls.
 system


How to use PCTimecode v2.0

Application form

1.Timecode
2.User Bits
3.Waveform
4.Class Name
5.Decode button
6.Stop button
7.Status bar_1
8.Status bar_2
9.TC copy button
10.Analysis

*Mr.timecode moved to the next job.
When you press the decode button.
(Signal not found.)

If the signal is not coming.
1.You do not input the timecode.
2.You did not select a recording device.
3.You had turn the volume down or mute of a recording device.
4.you connect a USB device with microphone.

Can you please make sure to operate the recording device. (not output, not playback)
When you press the decode button.
(Decode succeeded.)

If decoding fails.
1.Value of the signal is low.
2.Not SMPTE LTC
3.Not 23.98`60fps
(Supervisor mode)
or reverse.

If displayis distorted.
1.Graphics performance@is not enough.

There is a case to beresolved by uncheck "Smooth edges of screen fonts" in "Performance Options"
When you press the stop button.

Display will stop..

Config

Menu -> Config -> Audio Device
[Trial mode]
Wave Mapper fix

[Supervisor mode]
Choose from the list.
Menu -> Config -> Sampling Rate
[Trial mode]
48000Hz fix

[Supervisor mode]
Choose 48000Hz or 96000Hz. 
Menu -> Config -> Internal Clock
[Trial mode]
Disabled

[Supervisor mode]
Enable or Disable 

Internal Clock

External
State signal is coming.
Internal
Signal is interrupted or You disconnect the cable.
Display of frames is not.
hh:mm:ss:**
When you disconnect the cable.
Sometimes, switch of the audio device has a built-into the audio input receptacle on the computer.
 Caution Crystal of the computer is not a high accuracy, it does not completely synchronized. Slip of 2~3frames per hour will occur.


Analysis

Bit 10, 11, 27, 43, 58, 59 Value of the flag bits.
Frame Rate Frame rate of the received LTC.
Sampling Rate Sampling rate of decoding.
Threshold Threshold to distinguish between 0 and 1.
TC1second Milliseconds in real time for 1second of TC. (999, 1000 or 1001ms)
Increment Time resolution of the computer.
(It is desirable 35ms or less to use the internal clock.)


Product key

It operates in "Trial mode" when you download and install.
Menu -> About -> PCTimecode
You need a productkey to use the supervisor mode.

How to change of mode.
1.Enter productkey,
2.Push [OK],
3.Re-start PCTimecode.
Start in supervisormode thereafter.


Trial mode & Supervisor mode

 Function  Trial  Supervisor
Audio device select Wave Mapper fix All devices installed
Sampling rate select 48000Hz fix 48000Hz(23.98~30fps) or
96000Hz(23.98~60fps)
Internal clock Disable Enable or Disable
Hours, Minutes and Seconds is synchronized by internal clock signal even if interrupted.
Treshold 15Hz fix Auto
Automatically selects the most
appropriate value to match the frame rate.
Price Free $50US
  Performance is better than V1.1  


How to input a timecode to the computer

The timecode signal is input to Line-in of the computer.
Important:

Level of the timecode signal
must not exceed absolute maximum input of the computer.

/*Please input at your own risk of the user.*/
/*Author of this application is not responsible.*/
 Circuit diagram for DIY
Circuit diagram for DIY
BNC-J to 3.5mm stereo mini plug (without attenuator) cable.
/*Input max 2Vp-p*/
Input the line-in of computer the timecode signal.
Microphone input uses absolutely should not.
If more than 2Vp-p, please always use an attenuator.(-12.5dB ~ -30dB)


Excel macro function

 xls
Excel sample
with macro
The sample file on the left is the timecode import from PCTimecode macro function has been included.
Contents of the macro function is written below.
Please rewrite to make it as easy to use you.
'Macro Sample

'Sheet1TOF
'/////////////////////////////////////////////
Private Sub PCTimecode()

Columns("A:E").ColumnWidth = 6
Columns("E:F").ColumnWidth = 9
Columns("G:G").ColumnWidth = 37

With Range("A1", "G1")
.HorizontalAlignment = xlCenter
End With

Range("A1") = "OK/NG"
Range("B1") = "S#"
Range("C1") = "Cut"
Range("D1") = "Take"
Range("E1") = "In"
Range("F1") = "Out"
Range("G1") = "Note"

Range("A1:G1").Select
With Selection.Interior
.ColorIndex = 8
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With

Range("A2").Select
ActiveWindow.FreezePanes = True

End Sub

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Output only "E:F"(Put out this line if you do not need.)
If Target.Column = 5 Or Target.Column = 6 Then Exit Sub
Call OutputTimecode(Target)

End Sub
'/////////////////////////////////////////////
'Sheet1EOF






'Module1TOF
'/////////////////////////////////////////////
'######################################################
'VBA source code to receive Timecode from "PCTimecode"
'Albert Garden
'######################################################
Option Explicit

Private Declare Function FindWindowEx Lib "user32.dll" Alias "FindWindowExA" ( _
ByVal hwndParent As Long, _
ByVal hwndChildAfter As Long, _
ByVal lpClassName As String, _
ByVal lpWindowName As String _
) As Long

Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" ( _
ByVal hWnd As Long, _
ByVal Msg As Long, _
ByVal wParam As Long, _
ByVal lParam As Any _
) As Long

Private Const WM_GETTEXT = &HD

Public Sub OutputTimecode(ByVal Target As Range)
'The source below this should not renew it.
Dim hWindow As Long
Dim rl As Long
Dim buf As String * 12

'get app window hwnd
hWindow = FindWindowEx(0, 0, "PCTimecode", vbNullString)

If hWindow <> 0 Then

'get app text box hwnd
hWindow = FindWindowEx(hWindow, 0, "edit", vbNullString)

If hWindow <> 0 Then

rl = SendMessage(hWindow, WM_GETTEXT, Len(buf), ByVal buf)
Target.Value = Left(buf, 11) 'xx:xx:xx:xx

Else

MsgBox "PCTimecode error. orz"

End If

Else

MsgBox "PCTimecode is not found. orz"

End If

End Sub
'/////////////////////////////////////////////
'Module1EOF